Skip to main content
Glama

Quantum Atlas Universal Commerce Storefront (UCP)

Get UCP Shopping Cart

get_cart
Read-onlyIdempotent

Retrieve current line items, itemized USD cent totals, expiration timestamp, and resume URL for an existing UCP cart. Use this to inspect ucart_* basket state; do not use for checkout sessions (get_checkout). Parameters: pass top-level id ("ucart_<20 hex chars>") returned by create_cart. Behavior: read-only, zero charge; returns current cart state or CART_NOT_FOUND when expired or unknown.

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>"
    },
    "name": "get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCart identifier (format: ucart_<20 hex chars>) returned by create_cart.
metaNoUCP protocol request metadata (meta.ucp-agent and meta.idempotency-key).

Output Schema

NameRequiredDescriptionDefault
ucpYesNegotiated UCP protocol metadata and capability intersection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered; the description still adds 'zero charge' and, more usefully, the failure mode: 'returns current cart state or CART_NOT_FOUND when expired or unknown.' That error disclosure is real value beyond the structured fields, though it doesn't discuss retry or caching behavior for expired carts.

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 segments (purpose, Parameters, Behavior) with the scope and the sibling exclusion up front. Every sentence carries information; nothing is padded.

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?

With an output schema present, the description needn't detail return structure, and it sensibly sticks to identity, scope, cost, and the not-found case. For a two-parameter read tool with nested meta, nothing an agent needs 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.

Parameters3/5

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

Schema description coverage is 100%, so 'ucart_<20 hex chars> returned by create_cart' is largely a restatement of the id property's schema text. The one marginal addition is 'top-level id', which disambiguates against the nested meta object, but it is a thin contribution over an already well-documented schema.

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 ('Retrieve ... for an existing UCP cart') and enumerates what comes back: line items, itemized USD cent totals, expiration timestamp, resume URL. It explicitly separates itself from get_checkout, so an agent can route without opening either schema.

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 when-to-use ('inspect ucart_* basket state') and when-not ('do not use for checkout sessions (get_checkout)'), naming the alternative tool. Both the positive and negative conditions are present, which is the strongest form of routing guidance.

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