Skip to main content
Glama

create_checkout

Create checkout tasks from product page URLs to purchase one or more products across merchants; track background execution via webhooks, groupId, taskId, and liveUrl.

Instructions

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customer": "<customer>",
      "tasks": "<tasks>"
    },
    "name": "create_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
tasksYesOne or more products to checkout. Each item maps to a product URL.
addonsNoOptional extras applied during checkout
optionsNoCheckout behaviour flags (all default to false)
customerYesAll customer information for the checkout

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations present, the description carries the full burden and does so: it discloses that the call is async with background execution and webhook status updates, that multi-merchant orders fan out into one task per merchant, and it documents the return shape (a groupId plus one taskId and liveUrl per merchant task). The cross-tool prerequisite chain for agentic payments is spelled out rather than left implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three front-loaded sentences: identity and scope first, then the async/return contract, then the prerequisite workflow. Dense but every clause carries operational information, and no sentence merely restates the tool name or the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested, multi-merchant, asynchronous mutation with no output schema, the definition supplies everything an agent needs before calling: the async contract, the fan-out semantics, the returned identifiers, which siblings to poll, and the payment-authorization prerequisite. Nothing material is left for the agent to discover by trial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns above that by explaining how the tasks array maps to merchant-level task identities and by disambiguating the two mutually exclusive payment flavours (provider 'test' with raw card data vs. provider omitted with data.sessionId). It does not add much on the options flags or addons, which the schema already documents thoroughly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Creates a new CartAI checkout task from product page URLs') and scopes the supported order shapes (single-SKU, multi-SKU, multi-merchant with one task per merchant). It clearly separates itself from the tracking siblings (get_checkout, get_status_history) but never contrasts with create_search_checkout, the plausibly overlapping alternative, so the differentiation is strong but not complete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing for the agentic-payment path: call create_payment_session first, have the customer authorize via the returned url, then pass the sessionId as customer.payment.data.sessionId with no provider. It also names when to follow up with get_checkout or get_status_history. What it lacks is a when-not condition or guidance on choosing this over create_search_checkout.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.