kalicart-global

v1.1.0
io.github.giuseppesocci-bot/kalicart-global Checked 1 day ago Published 2 months ago

Federated 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.

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

ParameterTypeDescription
p2209_id *stringOffer 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.

ParameterTypeDescription
destination *stringISO 3166-1 country, optionally with region: "IT" or "IT:CB".
p2209_id *string
liveboolean
max_age_secondsinteger
quantityinteger
variation_idinteger

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…

ParameterTypeDescription
items *array
destinationstringISO 3166-1 country, optionally with region: "IT" or "IT:CB". Needed for shipping.
destination_detailsobjectPostal 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"}.
livebooleanfalse (default) uses saved Global data without contacting merchants; true reads each merchant now (at most 10 lines).
max_age_secondsinteger
quotebooleanfalse 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…

ParameterTypeDescription
constraints *arrayRequired 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 *stringOffer id from global_search (e.g. prod_duinshop-it_446678).
livebooleantrue reads the merchant Bridge now (one request).
max_age_secondsinteger
variation_idintegerVariant 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.

ParameterTypeDescription
domain *stringMerchant 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.

ParameterTypeDescription
p2209_id *stringKaliCart 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.

ParameterTypeDescription
limitintegerMax 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.

ParameterTypeDescription
parentstringOptional canonical node to restrict results to that node and its subtree (for example apparel or home.bedroom)