Skip to main content
Glama

Quantum Atlas Universal Commerce Storefront (UCP)

Update UCP Checkout Session

update_checkout
Idempotent

Update line items, buyer contact/wallet details, or selected fulfillment options on an open uchk_* checkout session. Use this to supply buyer email or 0x wallet before calling complete_checkout; rejected once canceled or completed. Parameters: pass top-level id ("uchk_*") and checkout object containing optional line_items, buyer, context, or fulfillment. Behavior: full-replace line_items update when supplied, recomputes final USD cent totals, and preserves session continuity.

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

Input Schema

NameRequiredDescriptionDefault
idYesActive checkout session identifier (uchk_<20 hex chars>).
metaNoUCP protocol request metadata (meta.ucp-agent and meta.idempotency-key).
checkoutYesCheckout fields to update.

Output Schema

NameRequiredDescriptionDefault
ucpYesNegotiated UCP protocol metadata and capability intersection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=true), the description discloses the canceled/completed state guard, full-replacement semantics for line_items, and that totals are recomputed in USD cents. It does not mention the idempotency-key retry mechanism, but the schema documents that.

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

Conciseness4/5

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

Three labeled sentences (Purpose / Parameters / Behavior) with zero filler and the critical precondition placed early. Slightly dense but every sentence adds content.

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 mutation tool with rich schema, presence of an output schema, and annotations, the description supplies the remaining essentials: the session-state precondition, the sibling dependency, and the replace-then-recompute behavior. Nothing an agent needs in order to call it correctly is missing.

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 the schema carries the parameter documentation baseline. The description adds a small but useful framing: which parameters are top-level (id) versus nested under checkout, and which checkout sub-objects are optional.

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 ('Update line items, buyer contact/wallet details, or selected fulfillment options on an open uchk_* checkout session'), including the session prefix that distinguishes it from cart siblings like update_cart.

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

Usage Guidelines5/5

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

Gives explicit sequencing ('use this to supply buyer email or 0x wallet before calling complete_checkout') and an explicit exclusion ('rejected once canceled or completed'), so an agent knows both when to call it and when it will fail.

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