CartAI MCP Server

v1.0.6
ai.cartai/cartai-mcp-server Checked 1 day ago Published 10 days ago

Agentic 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).

ParameterTypeDescription
customer *objectAll customer information for the checkout
tasks *arrayOne or more products to checkout. Each item maps to a product URL.
addonsobjectOptional extras applied during checkout
optionsobjectCheckout 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…

ParameterTypeDescription
customer *objectAll customer information for the checkout
itemList *arrayItems to find on the merchant's site and purchase
merchant *stringMerchant website URL to search and check out from e.g. 'https://kyliecosmetics.com/'
addonsobjectOptional extras applied during checkout
optionsobjectCheckout 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.

ParameterTypeDescription
taskId *stringA 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.

ParameterTypeDescription
taskId *stringThe 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.

ParameterTypeDescription
taskId *stringThe 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.

ParameterTypeDescription
otp *stringThe OTP/MFA code, 4–8 characters
taskId *stringID of the checkout task that is waiting for input
intentstringType 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…

ParameterTypeDescription
name *stringProduct name or search query
merchantstringOptional 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.

ParameterTypeDescription
url *stringFull product page URL to fetch details for
allVariantsbooleanWhen 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.

ParameterTypeDescription
destination *objectDelivery destination for shipping and tax calculation
items *arrayList of items to estimate costs for
merchant *stringName 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.

ParameterTypeDescription
email *stringCustomer's email address — used to identify the customer and look up their card
price *stringPayment amount in USD, as a string with no currency symbol e.g. '700'
purpose *stringShort description of what the payment is for (e.g. agent name or product), shown to the customer during the payment flow
currencystringCurrency code. Default: 'USD'
expirystringISO 8601 timestamp after which the session URL is no longer valid. Default: 1 week from creation
merchantNamestringOptional display name of the merchant the payment is for
merchantUrlstringOptional 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.

ParameterTypeDescription
sessionId *stringThe 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.

ParameterTypeDescription
sessionId *stringThe sessionId returned by create_payment_session
merchantUrlstringOptional 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.

ParameterTypeDescription
email *stringCustomer's email address
merchantDomain *stringMerchant website URL the credentials belong to e.g. 'https://saltiebeauty.com'