Skip to main content
Glama

Quantum Atlas Universal Commerce Storefront (UCP)

Cancel UCP Shopping Cart

cancel_cart
DestructiveIdempotent

Cancel and discard an active ucart_* shopping cart session so it can no longer be modified or converted into a checkout. Use this when a buyer abandons a basket; use cancel_checkout for uchk_* checkout sessions. Parameters: pass top-level id ("ucart_*") and meta.idempotency-key. Behavior: transitions cart status to "canceled" with replay-safe idempotency caching; zero financial charge.

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": "cancel_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCart identifier (ucart_<20 hex chars>) to cancel.
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.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: the resulting status ('canceled'), that the cart becomes unmodifiable and non-convertible, and 'zero financial charge' — a consequence the destructiveHint flag does not convey. 'Replay-safe idempotency caching' largely restates idempotentHint=true, which keeps it from a 5.

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?

Front-loaded with the action and its effect, then labeled 'Parameters:' and 'Behavior:' blocks that scan quickly. Slightly redundant in re-stating idempotency that annotations already declare, but no filler.

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 destructive two-parameter mutation with an output schema, it covers when to call, what state results, what is destroyed, and that there is no financial impact. Authorization/profile requirements are delegated to the schema's meta.ucp-agent field, so nothing critical 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 the baseline applies. The description does add a small disambiguation by stressing the id is 'top-level' (not inside meta), but otherwise just echoes the two field names the schema already documents in full.

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 ('Cancel and discard an active ucart_* shopping cart session') plus the concrete consequence ('no longer be modified or converted into a checkout'), which lets an agent distinguish it from cancel_checkout on the ucart_*/uchk_* prefix alone.

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 an explicit trigger ('Use this when a buyer abandons a basket') and names the alternative with the selecting condition ('use cancel_checkout for uchk_* checkout sessions'). No inference required.

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