CartAI MCP Server
v1.0.6Agentic checkout with or without a human in the loop, product catalog, and an agent wallet.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_checkout
Creates a new CartAI checkout task from product page URLs. This is an async API — the checkout executes in the background and emits status updates via webhooks. Supports single-SKU, multi-SKU, and multi-merchant orders (one task per merchant). Returns a groupId plus one taskId and liveUrl per merchant task; track each with get_checkout or get_status_history. For agentic payments, first call create_payment_session and have the customer authorize their card via the returned url, then pass the resulting sessionId as customer.payment.data.sessionId (no provider needed in this case).
| Parameter | Type | Description |
|---|---|---|
customer * | object | All customer information for the checkout |
tasks * | array | One or more products to checkout. Each item maps to a product URL. |
addons | object | Optional extras applied during checkout |
options | object | Checkout behaviour flags (all default to false) |
create_search_checkout
PRIMARY TOOL FOR BUYING NAMED PRODUCTS FROM A SPECIFIC STORE. Use this whenever the user wants to purchase / order one or more products by name from a named merchant — e.g. 'buy X, Y and Z from Kylie Cosmetics' or a shopping list for one store. Call it directly: do NOT call search_products or get_product_details first — this tool does the product search on the merchant's site itself. If the user gives only a store name, infer its website URL for `merchant` yourself (e.g. 'kylie cosmetics' → 'https://kyliecosmetics.com/'). If customer contact, address, or payment details are missing, ask…
| Parameter | Type | Description |
|---|---|---|
customer * | object | All customer information for the checkout |
itemList * | array | Items to find on the merchant's site and purchase |
merchant * | string | Merchant website URL to search and check out from e.g. 'https://kyliecosmetics.com/' |
addons | object | Optional extras applied during checkout |
options | object | Checkout behaviour flags (all default to false) |
get_checkout
Retrieves the full state of a CartAI checkout task by taskId — current status, execution iterations, derivedDetails (pricing, shipping), addons, and the original customer and product data. Best called on a webhook event; polling is possible but not recommended.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | A taskId returned by create_checkout or create_search_checkout |
cancel_checkout
Cancels an in-progress CartAI checkout task. Stops all ongoing checkout processes and prevents further execution. Requires only the taskId.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | The ID of the checkout task to cancel |
get_status_history
Retrieves the complete status history for a checkout task — every execution step (e.g. CREDIT_CARD_INPUT, ORDER_CONFIRMED) with its systemStatus (e.g. IN_PROGRESS, FAILED), timestamp, failure flag, note, credits consumed, and retry count.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | The ID of the checkout task |
send_interactive_inputs
Sends input from the customer to a checkout task that is paused and waiting for it (only for tasks created with options.allowInteraction = true). Currently the only supported input is an MFA/OTP code (intent 'mfa'). Ask the customer for the code they received, then submit it here. An OTP can only be submitted once per task.
| Parameter | Type | Description |
|---|---|---|
otp * | string | The OTP/MFA code, 4–8 characters |
taskId * | string | ID of the checkout task that is waiting for input |
intent | string | Type of input being sent. Supported: 'mfa'. Default: 'mfa' |
search_products
PRODUCT DISCOVERY ONLY — for when the user is browsing, comparing, or exploring products and has not yet decided exactly what to buy. NOT for purchasing: if the user wants to buy / order named products from a specific merchant, do NOT call this tool — call create_search_checkout directly instead. Searches for products by name across merchants and returns ranked results each with name, brand, merchant, image, priceFrom, currency, and directUrl. Optionally narrow results to a specific merchant while still returning others. If the user later decides to order a result, pass its directUrl to cr…
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name or search query |
merchant | string | Optional merchant name to prioritize results (e.g. 'amazon', "Macy's") |
get_product_details
Retrieves detailed product information for a given product page URL. Returns product metadata, supported checkout modes (canCheckout: login / guest), variant dimension names (e.g. Color, Size), and per-variant price, availability, image, attributes, and monetizationUrl.
| Parameter | Type | Description |
|---|---|---|
url * | string | Full product page URL to fetch details for |
allVariants | boolean | When true, returns all available variants for the product |
get_checkout_estimates
Computes a pre-checkout cost estimate for a given merchant, destination ZIP, and list of items. Returns subtotal, shipping, tax, and total (with shippingKnown / taxKnown flags) before placing an order. unitPrice can be taken from get_product_details or search_products.
| Parameter | Type | Description |
|---|---|---|
destination * | object | Delivery destination for shipping and tax calculation |
items * | array | List of items to estimate costs for |
merchant * | string | Name of the merchant to estimate costs for (e.g. 'Alo Yoga') |
create_payment_session
Creates a hosted payment session and returns a secure URL for the customer to authorize their card. The session automatically initiates Visa Intelligent Commerce or Mastercard Agent Pay based on the customer's card on file — no additional integration required. REQUIRED FOLLOW-UP — every single time, with no exceptions: immediately return the url received in the response and present it, so the customer gets a clickable 'Open' button. Do this automatically without asking the user first, and do not just print or return the raw url as text.
| Parameter | Type | Description |
|---|---|---|
email * | string | Customer's email address — used to identify the customer and look up their card |
price * | string | Payment amount in USD, as a string with no currency symbol e.g. '700' |
purpose * | string | Short description of what the payment is for (e.g. agent name or product), shown to the customer during the payment flow |
currency | string | Currency code. Default: 'USD' |
expiry | string | ISO 8601 timestamp after which the session URL is no longer valid. Default: 1 week from creation |
merchantName | string | Optional display name of the merchant the payment is for |
merchantUrl | string | Optional website URL of the merchant the payment is for |
delete_payment_session
Deletes an existing payment session. Once deleted, the hosted payment URL stops working and payment credentials can no longer be retrieved for the session.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The sessionId returned by create_payment_session |
get_payment_credentials
Retrieves a scoped payment credential for a session the customer has authorized. The credential is an agentic PAN from Visa Intelligent Commerce or Mastercard Agent Pay, or a card from the customer's Stripe Link wallet. It is limited to the approved amount and merchant. The customer's real card number is never returned. Use the credential only to complete the purchase.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The sessionId returned by create_payment_session |
merchantUrl | string | Optional website URL of the merchant the credentials will be used on |
create_credential_session
Creates a credential vault session for a merchant and returns a secure URL where the customer can store their login credentials for that merchant. Stored credentials are used by checkouts created with options.useSavedCredentialToLogin = true. The URL is valid for a limited time (expiresIn, in minutes). REQUIRED FOLLOW-UP: immediately present the returned url as a clickable link so the customer can open it.
| Parameter | Type | Description |
|---|---|---|
email * | string | Customer's email address |
merchantDomain * | string | Merchant website URL the credentials belong to e.g. 'https://saltiebeauty.com' |