Tools reference
Shopper MCP Server provides tools for product discovery, cart management, checkout, and payments. Which tools are available depends on your deployment. See Availability by deployment. The live tools/list response for your connection is authoritative.
Product discovery product-discovery
product_searchsearchable_attributesproduct_facetssearch_categoriesproduct_dataproduct_variantscategories_dataproduct_recommendationsCart management cart-management
Cart tools that act on a signed-in shopper’s cart require shopper authentication. Guest cart flows do not require authentication.
For tenants with an OAuth 2.0 client in the MCP Registry, send X-Agent-ID, X-Agent-Key, and X-Session-Id instead and the MCP obtains the token. See the full list of required headers. The MCP may return:
auth_required: openauthorizationUrland retry after the webhook confirms loginsession_id_requiredagent_auth_requiredauth_unavailable
add_to_cartget_cartremove_from_cartupdate_cart_items0 removes the item.merge_guest_cartCheckout and payment checkout
Checkout and payment tools are in early access.
set_guest_emailset_shipping_addressget_available_shipping_methodsset_shipping_methodget_available_shipping_methods.set_billing_addressget_available_payment_methodsget_payment_configurationcreate_payment_order to confirm that a wallet method is enabled. If the response includes a capability value, the method is not enabled for that location.create_payment_orderset_payment_method for any wallet method (Google Pay, Apple Pay, or PayPal Smart Buttons). Not idempotent: each call creates a new PayPal order, so do not retry after a timeout or error until you confirm that the earlier call failed.set_payment_methodmp_order_id and id returned by create_payment_order.get_payment_orderAPPROVED before you call place_order. If the status is still CREATED, the shopper has not confirmed the payment and place_order fails.place_orderguest_orderguest_order_by_tokenplace_order returns.guest_order when you have the token. It works on every Commerce version, while the lookup fields that guest_order needs differ between releases.customer_ordersguest_order for registered customers, because guest order lookups do not return their orders. Returns orders from the connected store view only.The payment tools select a payment method that is already configured for the Commerce store. Payment Services wallet methods use additional tools. See Set up Google Pay and Call order for Payment Services wallet payments. For other payment-processor integrations, contact your Adobe Commerce representative.
Call order for guest checkout guest-checkout
- Set the guest email with
set_guest_email. - Set the shipping address with
set_shipping_address. - Retrieve shipping methods with
get_available_shipping_methods, then select one withset_shipping_method. - Set the billing address with
set_billing_address. - Retrieve payment methods with
get_available_payment_methods, then select one withset_payment_method. - Review the cart with the shopper and get their confirmation.
- Submit the order with
place_order.
place_order is irreversible. Always get the shopper’s confirmation before you call it.Call order for Payment Services wallet payments wallet-payments
For Google Pay, Apple Pay, and PayPal Smart Buttons, replace step 5 of the guest checkout call order with these steps:
- Confirm that the wallet method is enabled with
get_payment_configuration. - Create a Payment Services order with
create_payment_order, and save the returnedidandmp_order_id. - Have the shopper confirm the payment in the wallet.
- Set the payment method with
set_payment_method. Passmp_order_idaspayments_order_idandidaspaypal_order_id. - Confirm that the order status is
APPROVEDwithget_payment_order.
Then review the cart with the shopper and submit the order with place_order.
For a complete Google Pay flow, including the PayPal calls that your application makes and example code, see Set up Google Pay.
Custom tools custom-tools
Custom tools that you register appear in tools/list alongside the default tools. See Create a custom tools server.