Skip to main content
Glama

Cancel an order

cancel_order
DestructiveIdempotent

Cancel an order on this account that has not started printing, including one we are checking by hand (status attention). It is refunded in full to the card that paid. Once printing has started it cannot be cancelled.

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": {
      "order_id": "<order_id>"
    },
    "name": "cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, openWorldHint=true and readOnlyHint=false, so the safety profile and repeat-call behavior are known. The description still adds real value by disclosing the refund side effect (full refund to the paying card) and the 'attention' status case, but it says nothing about failure behavior beyond the printing cutoff or about permissions required. Useful additions on top of annotations, not exhaustive.

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 short sentences with zero waste: capability and precondition first, the refund consequence second, the hard cutoff last. Every sentence contributes distinct information.

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?

No output schema exists, and the description covers the important observable outcome (full refund to the paying card) plus the eligibility boundary and the attention-status edge case. For a one-parameter mutation this is nearly complete; only error/permission behavior is left implicit, which annotations partially cover.

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?

Single required parameter order_id with 0% schema description coverage, so the description could have spelled out the expected identifier format or where to obtain it and does not. The parameter name is largely self-explanatory, so the gap is modest, but the description adds no meaning beyond the schema.

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 order) plus a precise precondition: it has not started printing. It also carves out a non-obvious case (orders in the manual 'attention' status), which clearly separates it from read-side siblings like get_order or list_orders, though no sibling is named explicitly.

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 clear when-to-use guidance (order not yet printing) and an explicit when-not (once printing has started it cannot be cancelled). The gateway is not named, so an agent isn't told to verify status via get_order first, which would have made it 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