Skip to main content
Glama

Quantum Atlas Universal Commerce Storefront (UCP)

Create UCP Checkout Session

create_checkout

Create a uchk_* UCP checkout session either by converting an existing ucart_* cart or directly from buy-now line_items. Use this when transitioning from browsing/cart to purchase commitment; call complete_checkout next to generate the final payment handoff. Parameters: pass checkout.cart_id (with checkout.line_items: []) to convert a cart, or pass non-empty checkout.line_items plus optional checkout.buyer and checkout.context. Behavior: locks pre-completion USD cent totals, attaches instant digital fulfillment options, and returns uchk_* session state.

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": {
      "checkout": "<checkout>"
    },
    "name": "create_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
metaNoUCP protocol request metadata (meta.ucp-agent and meta.idempotency-key).
checkoutYesUCP checkout creation body.

Output Schema

NameRequiredDescriptionDefault
ucpYesNegotiated UCP protocol metadata and capability intersection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, but the description adds real behavior beyond them: it locks pre-completion USD cent totals, attaches instant digital fulfillment options, and returns uchk_* session state. It does not discuss failure modes or how the idempotency key interacts with the declared non-idempotent hint, but the schema covers those.

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 labeled blocks (purpose/next-step, Parameters, Behavior) with the core action and mode split front-loaded. Every sentence carries distinct information and nothing restates the schema verbatim.

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

Completeness4/5

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

For a two-parameter but deeply nested mutation tool with an output schema, the description covers entry modes, side effects, and the follow-up call. It omits retry/error semantics and the role of meta.ucp-agent, which the rich schema partially covers, leaving a small gap.

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 coverage is 100%, so baseline is 3. The description earns a point by explaining the non-obvious coupling rule: cart_id must be paired with checkout.line_items: [] to convert, whereas buy-now requires non-empty line_items plus optional buyer/context. That mutual-exclusion logic is not self-evident from the schema alone.

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

Purpose5/5

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

States a specific verb and resource ("Create a uchk_* UCP checkout session") and immediately names the two input modes (converting a ucart_* cart vs. buy-now line_items), which distinguishes it from create_cart and create_checkout siblings. An agent knows exactly what this produces without opening the schema.

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 lifecycle positioning: "Use this when transitioning from browsing/cart to purchase commitment" and names complete_checkout as the required next call. The Parameters block further encodes the mode-selection rule. It lacks an explicit when-not-to-use statement (e.g., use create_cart first if no cart exists), keeping it short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources