mandate0
MCP

MCP tool reference

Discover the current schemas and use the implemented tool groups.

After connecting, use the SDK's tools/list operation. Its schemas are the authoritative contract for that server version. Implementations are registered by apps/platform/src/mcp/server.ts; aa_ compatibility aliases retain the same checks where installed.

First read calls

ToolInputsPurpose
m0_list_merchantslimit, optional cursorBrowse published profiles
m0_get_merchant_profileslugRead a profile and its merchant identifier
m0_search_productsquery, optional merchantIdSearch visible catalog products
m0_discover_merchantmerchantDomainDiscover merchant capabilities
m0_query_metricsrange; merchantId when neededRead your storefront's traffic metrics
m0_get_analytics_reportInspect the returned schemaRead a named traffic report

After selecting a listed slug, use m0_get_merchant_profile to obtain the merchantId for product search. Do not derive it from a display name.

Commerce

Cart tools: m0_create_cart, m0_get_cart, m0_update_cart, m0_cancel_cart.

Checkout tools: m0_create_checkout, m0_get_checkout, m0_update_checkout, m0_complete_checkout, m0_cancel_checkout.

Inspect the schema first. Store capabilities, account environment, scopes and checkout rail determine availability. Completion still enforces authority, payment and owner-confirmation requirements.

Other groups

Agent, wallet, card, mandate, policy, user, authority and analytics tools also exist in source. Code capability is not a promise that every account has every feature or every payment rail enabled. Discover tools rather than hardcoding a count.

Check isError, preserve non-secret request/session identifiers, and retry only transient errors. Never replay a financial operation without its required idempotency semantics.

On this page