Developers & agents

MCP tool reference

Tools exposed over the merchant-scoped MCP endpoint. The public endpoint exposes catalog + cart + checkout-prep; customer-account and B2B tools require a per-request Customer Account token.

ToolInputsReturns
shopify_search_productsquery (optional — omit to browse), limit ≤25, minPrice, maxPriceImage-aware product summaries; over-budget items filtered server-side.
shopify_get_producthandleProduct detail + variant GIDs; product copy returned as untrusted.
shopify_create_cartlines[] (variant GID + qty, optional sellingPlanId), idempotencyKeyA real Storefront cart; no checkout URL.
shopify_add_to_cartlines[], idempotencyKeyUpdated cart; no checkout URL.
shopify_show_cartCart lines, subtotal, total estimate, purchasability.
shopify_prepare_checkoutconfirmation (exact phrase), idempotencyKeyShopify-hosted checkout URL — only when the exact confirmation is supplied.
shopify_get_merchant_contextpageQuery, includeMetaobjectsRead-only shop profile, policies, FAQ/pages — returned as untrusted data.
shopify_get_customer_contextcustomerAccessToken (per request), orderLimitRedacted order/account summary + hosted account handoff links. No PII stored.
shopify_list_b2b_company_locationscustomerAccessToken, limitCompany locations for the authenticated account (token-free handle).
shopify_select_b2b_company_locationcustomerAccessToken, companyLocationIdValidated buyer-context handle for later cart/product calls.

Checkout gate

Checkout is withheld until the buyer sends the exact phrase, verbatim:

I understand checkout continues in Shopify

Paraphrases are rejected and the agent must not supply the phrase itself.