kalicart-global
v1.1.0Federated commerce search across independent WooCommerce merchants.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
global_search Search products across merchants
Use this when a user wants to find or compare product candidates across participating WooCommerce merchants. Search cards include bounded variants_compact and variant_option_values from the merchant snapshot. Option values are independent and do not prove a purchasable combination. Verify the selected variant, price and stock through its merchant Bridge handoff before confirming an offer. For a request with multiple distinct items, search each item independently (calls may run in parallel), then pass the selected p2209_id values together to verify_basket. Each offer states checkout_quote_avail…
| Parameter | Type | Description |
|---|---|---|
brand | string | Brand facet filter (normalized, e.g. "nike") |
color | string | Bridge color family (e.g. "blue"). Common aliases are resolved to a family available in the active index. A family match does not guarantee an exact shade; read filter_semantics.color and verify the c… |
cursor | string | Opaque next_cursor from a previous global_search with the SAME arguments; returns the next page. A cursor from a different query is rejected. |
gender | string | Canonical gender facet. Filtering is discovery-tolerant: untagged and unisex products can remain candidates, so verify the chosen product. Allowed values: female, male, unisex. |
in_stock | boolean | true filters product-level stock in the indexed snapshot. Does not verify a selected variant or a booking slot. |
leaf | string | Canonical category node. Accepts a terminal leaf (e.g. beverages.alcohol.sparkling_prosecco) or any parent node (e.g. jewellery, home.bedroom): a parent matches the node and its whole subtree, so you… |
limit | integer | Max offers per page (1-25, default 10). Use next_cursor for the next page. |
max_price | number | Upper bound in major currency units (for example 1550 means EUR 1,550 for EUR offers). A matching range may include variants above this bound; verify the chosen variant. Per-offer currency, no FX conv… |
merchant | string | Restrict to one merchant: merchant_id as returned in result_facets.merchants or offers (e.g. "duinshop-it") or its domain. |
min_price | number | Lower bound in major currency units (for example 50 means EUR 50 for EUR offers). Matches overlapping variant price ranges in each offer currency; no FX conversion. Verify the chosen variant. |
price_currency | string | ISO 4217 currency of min_price/max_price (e.g. EUR). With it, only offers priced in that currency are returned; without it the bounds compare numbers in each offer's own currency. Needs min_price or m… |
q | string | Free-text product query. Each term must match as a whole word in the native merchant catalog text (name, short description, description) or in the canonical category path, so English category terms re… |
result_facets | boolean | true adds result_facets: counts over ALL matching offers (not just this page) by merchant, category leaf, brand, availability, and price quartiles per currency. Use them to narrow the next call. |
sort | string | relevance (default) | price_asc | price_desc. Price order compares snapshot prices within each offer currency (no conversion); combine with price_currency for one currency. |
variant | Constraints that must ALL hold on the SAME variant. Keys and values are the merchant's own, in any language or script (read variant_vocabulary first): {"pa_taglia":"L"}, {"size":["L","Large"]}, {"*":[… | |
variant_facets | boolean | true adds variant_vocabulary: real option keys and values with variant and in-stock counts, for the offers returned or, with no q, for the merchant (or all merchants). Use it to choose the values to p… |
variant_facets_limit | integer | Max values per option key in variant_vocabulary (1-200, default 40); values_total is always the full count |
variant_in_stock | boolean | true keeps only variants whose own availability is in_stock |
variant_limit | integer | Max matching variants returned per offer (1-500, default 50); matching_variant_count is always the full count |
variant_price_currency | string | ISO 4217 currency of variant_price_min/max (e.g. EUR). With it, only variants priced in that currency satisfy the bound; no FX conversion. Without it, bounds compare numbers in each variant's own curr… |
variant_price_max | number | Upper bound on the variant price (major units) |
variant_price_min | number | Lower bound on the variant price (major units) |
get_offer_attestation Portable merchant attestation for one offer
Returns a cryptographic proof that this offer's product row is exactly the one the merchant signed in its catalog snapshot: the signed row, its bucket hashes, the Ed25519-signed manifest, the merchant public key and step-by-step verification. Trust is anchored on the merchant domain (key fingerprint published at key_anchor), not on KaliCart. It proves the row as signed at snapshot.generated_at, not the current price or stock: the checkout is authoritative. Independent verifier: https://global.kalicart.com/ucp/tools/verify-offer-attestation.js
| Parameter | Type | Description |
|---|---|---|
p2209_id * | string | Offer id from global_search (e.g. prod_duinshop-it_446678). |
estimate_delivered_cost Estimate the delivered cost of one offer to a destination
Deterministic estimate from the merchant's own data: item price x quantity plus the shipping options the store declares for the destination (flat rate = declared base rate; free shipping with its threshold, whether this quantity reaches it and how much is missing). Lists what is not included (shipping classes, cost formulas, duties, taxes on shipping). Pass variation_id for variable products. Valid within max_age_seconds of the last merchant confirmation; live=true reads the merchant now. The checkout is the only authority.
| Parameter | Type | Description |
|---|---|---|
destination * | string | ISO 3166-1 country, optionally with region: "IT" or "IT:CB". |
p2209_id * | string | |
live | boolean | |
max_age_seconds | integer | |
quantity | integer | |
variation_id | integer |
verify_basket Verify a multi-merchant basket before handing it to checkout
For a multi-item request, collect p2209_id and any selected variation_id from global_search results and send all selected items in one call. For every variable product, include a variation_id from its selected variants_compact entry on the first call; without it the price and basket total may be unknown. Never substitute WooCommerce numeric product IDs for p2209_id. Set live=false for a snapshot-only check with no merchant request; live=true reads merchants. Checks a basket of offers (up to 40 lines, any merchants) against the merchants' own data. Per merchant: subtotal, declared shipping opti…
| Parameter | Type | Description |
|---|---|---|
items * | array | |
destination | string | ISO 3166-1 country, optionally with region: "IT" or "IT:CB". Needed for shipping. |
destination_details | object | Postal destination for precise declared shipping zones even with quote=false and live=false; required for quote=true. Example: {country:"IT",state:"CB",postcode:"86100",city:"Campobasso"}. |
live | boolean | false (default) uses saved Global data without contacting merchants; true reads each merchant now (at most 10 lines). |
max_age_seconds | integer | |
quote | boolean | false by default. true requires live=true and destination_details, and may contact up to four merchants for WooCommerce quotes. |
verify_offer Verify constraints on one offer (true / false / unknown)
Checks ONE offer (optionally a selected variant) and returns true, false or unknown per constraint with evidence. Pass constraints as an ARRAY, for example [{"field":"available"},{"field":"price","max":300,"currency":"EUR"},{"field":"ships_to","value":"IT:CB"}]. available has no expected key: ask for the fact and read its result. For a merchant-declared variant option use {"field":"option","keys":["pa_color"],"values":["black"]}; use only native merchant values, with variation_id for a specific variant. Nothing is inferred or translated. Results are unknown outside max_age_seconds (default 864…
| Parameter | Type | Description |
|---|---|---|
constraints * | array | Required array of 1-8 objects. Each object has field and only the keys shown by its schema. Examples: [{"field":"available"}], [{"field":"price","max":50,"currency":"EUR"}]. |
p2209_id * | string | Offer id from global_search (e.g. prod_duinshop-it_446678). |
live | boolean | true reads the merchant Bridge now (one request). |
max_age_seconds | integer | |
variation_id | integer | Variant to check (from matching_variants or variants_compact). Without it, variant-dependent constraints may be unknown. |
lookup_merchant Check a merchant for KaliCart Bridge
Use this when the user already knows a merchant domain and needs to check whether it publishes a KaliCart Bridge catalog, its latest observed access state, or its federation consent. This tool only reads the Global registry and never probes or modifies the merchant. Do not use it to discover products; use global_search instead.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Merchant domain, e.g. shop.example.com |
get_product Get indexed product details
Use this after global_search when the selected candidate needs indexed details that are not already on its search card. The p2209_id must come from global_search. Variant options and colors are merchant-declared snapshot evidence matched by variation ID. This remains a snapshot, not live merchant verification; follow the returned handoff before confirming variant, price, or stock. Skip this call when the search card already answers the question.
| Parameter | Type | Description |
|---|---|---|
p2209_id * | string | KaliCart product ID (e.g. prod_duinshop-it_432395) |
list_merchants List participating merchants
Use this to inspect which WooCommerce merchants currently participate in the searchable KaliCart Global catalog and how much catalog coverage each contributes. It returns stable merchant identifiers, domains, storefront URLs, product counts, and sync time. Do not use it to find products; use global_search instead.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max merchants to return (default 20, max 50), ordered by product count descending. No pagination |
list_categories Browse canonical product categories
Use this to discover the canonical category paths currently represented in KaliCart Global before calling global_search with leaf. An optional parent returns that node and its full subtree. This lists category vocabulary and counts; it does not return products.
| Parameter | Type | Description |
|---|---|---|
parent | string | Optional canonical node to restrict results to that node and its subtree (for example apparel or home.bedroom) |