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

Tool
Purpose
Dependency or note
product_search
Search products using a phrase, filters, sorting, and pagination.
Requires Live Search on Adobe Commerce on cloud infrastructure or on-premises.
searchable_attributes
List attribute codes available for filtering and sorting.
Requires Live Search on Adobe Commerce on cloud infrastructure or on-premises. Use these attribute codes in search filters.
product_facets
Return available filter values and counts for a search context.
Requires Live Search on Adobe Commerce on cloud infrastructure or on-premises.
search_categories
Find candidate categories for a phrase.
Requires Live Search on Adobe Commerce on cloud infrastructure or on-premises.
product_data
Retrieve product details by exact SKU.
Catalog data must be available. Search first if you need to find the SKU.
product_variants
Retrieve variants and option combinations for a configurable product.
Catalog data must be available.
categories_data
Retrieve a category and up to three levels of descendants by category ID.
Uses Commerce category data.
product_recommendations
Retrieve recommendation units for a product and page context.
Requires Product Recommendations on Adobe Commerce on cloud infrastructure or on-premises.

Cart 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: open authorizationUrl and retry after the webhook confirms login
  • session_id_required
  • agent_auth_required
  • auth_unavailable
Tool
Purpose
Dependency or note
add_to_cart
Create a guest cart if needed, and add products.
Save the returned cart ID for later operations.
get_cart
Retrieve cart contents, item details, and totals.
Requires the cart ID.
remove_from_cart
Remove a cart item by its item UID.
Requires the cart ID and item UID.
update_cart_items
Change quantities of existing cart items. A quantity of 0 removes the item.
Requires the shopper token.
merge_guest_cart
Move a guest cart into the shopper’s cart after the shopper logs in. If the shopper’s active cart is empty, the guest cart is assigned to the shopper and keeps its checkout state (merge_strategy: “assigned”); otherwise the guest items are merged into the shopper’s cart and the guest cart is deactivated (merge_strategy: “merged”).
Requires the shopper token.

Checkout and payment checkout

Checkout and payment tools are in early access.

Tool
Purpose
Dependency or note
set_guest_email
Set the email address on a guest cart.
Used for guest checkout.
set_shipping_address
Set the shipping address for the cart.
Required before you retrieve shipping methods.
get_available_shipping_methods
Retrieve shipping methods for the cart.
Set the shipping address first.
set_shipping_method
Select a shipping method.
Use a method returned by get_available_shipping_methods.
set_billing_address
Set the billing address, or indicate that it matches the shipping address.
Required before you retrieve payment methods and place an order.
get_available_payment_methods
Retrieve payment methods available for the cart.
Set the billing address first.
get_payment_configuration
List the Payment Services payment methods enabled for a storefront location, such as checkout or cart. Read-only. Does not need a cart.
Requires Payment Services. Call it before create_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_order
Create a Payment Services (PayPal) order for the cart.
Requires Payment Services. Call it before set_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_method
Select a payment method.
Use a method configured for the Commerce store. For a Payment Services wallet method, pass the mp_order_id and id returned by create_payment_order.
get_payment_order
Retrieve the status of a Payment Services (PayPal) order. Read-only.
Requires Payment Services. Confirm that the status is APPROVED before you call place_order. If the status is still CREATED, the shopper has not confirmed the payment and place_order fails.
place_order
Submit the cart as an order.
Irreversible. Requires cart items, a billing address, and a payment method. Unless the cart is virtual, also requires a shipping address and shipping method.
guest_order
Retrieve guest order details by order number, email, and billing last name.
The details must match the order.
guest_order_by_token
Retrieve guest order details by the order token that place_order returns.
Use it instead of 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_orders
Retrieve the signed-in customer’s orders, newest first, or the full details of one order by order number.
Requires the shopper token. Use it instead of guest_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

  1. Set the guest email with set_guest_email.
  2. Set the shipping address with set_shipping_address.
  3. Retrieve shipping methods with get_available_shipping_methods, then select one with set_shipping_method.
  4. Set the billing address with set_billing_address.
  5. Retrieve payment methods with get_available_payment_methods, then select one with set_payment_method.
  6. Review the cart with the shopper and get their confirmation.
  7. Submit the order with place_order.
CAUTION
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:

  1. Confirm that the wallet method is enabled with get_payment_configuration.
  2. Create a Payment Services order with create_payment_order, and save the returned id and mp_order_id.
  3. Have the shopper confirm the payment in the wallet.
  4. Set the payment method with set_payment_method. Pass mp_order_id as payments_order_id and id as paypal_order_id.
  5. Confirm that the order status is APPROVED with get_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.

recommendation-more-help
commerce-help-shopper-mcp