Skip to main content
Glama

X402-Broker Universal MCP Gateway & Multi-Agent Swarm Router

cancel_checkout

Idempotent

Cancel an uncommitted checkout session by checkout_id. Example: cancel_checkout(checkout_id='chk_1')

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkout_idNoCheckout session identifier to cancel.

Output Schema

NameRequiredDescriptionDefault
storeYesMerchant domain identifier.
ucp_versionNoSupported UCP specification version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is covered. The description contributes the 'uncommitted' constraint, which tells the agent cancellation is conditional, but it omits what happens to the session afterward (state transition, invalidation) and what error surfaces for a completed checkout.

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?

One short scoping sentence plus a compact inline example — nothing redundant, and the operative constraint ('uncommitted') is front-loaded.

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?

With rich annotations, full schema coverage, and an output schema present, the definition gives an agent everything needed to invoke it correctly. The only meaningful gap is sibling disambiguation from cancel_cart/complete_checkout.

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 coverage is 100% for the single parameter, so the schema already explains checkout_id. The description adds only an example value ('chk_1') that hints at the identifier format, which is a marginal gain over the schema but not substantive semantic detail.

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?

States a specific verb and resource ('Cancel an uncommitted checkout session') plus the identifier used to target it. The 'checkout session' resource distinguishes it from cancel_cart by name, though the description never explicitly contrasts the two siblings.

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

Usage Guidelines3/5

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

The word 'uncommitted' implies a precondition (only sessions not yet completed can be cancelled), which is useful implied guidance. However, there is no explicit when-not statement, no mention of what to do instead if the checkout is already completed, and no routing to cancel_cart for cart sessions.

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.