Skip to main content
Glama

cancel_order

List valid ATB cancellation reasons or cancel an active order after approval by setting confirm_cancel to true. Use order_id and reason to complete the cancellation.

Instructions

List ATB cancel reasons or cancel an active order when confirm_cancel=True after approval.

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_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
reasonNo
order_idNo
confirm_cancelNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does add one useful behavioral hint — that cancellation is gated behind confirm_cancel and 'approval' — but it does not disclose irreversibility, what happens when confirm_cancel is false (does it return the reason list, or no-op?), permission requirements, or whether listing reasons is a prerequisite for supplying a reason code.

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

Conciseness3/5

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

It is a single compact sentence with no filler, which is good, but the compound 'X or Y when Z after W' construction requires re-reading and buries the destructive branch mid-sentence. Splitting the two modes into separate clauses would cost nothing and remove ambiguity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with zero annotation coverage, 0% schema documentation, and four parameters including an unexplained 'text' field, the description is far too thin. The existence of an output schema excuses it from describing return values, but the mode-switching behavior and the role of each parameter remain undefined.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description must compensate and largely fails. It explains confirm_cancel's role and implies reason values come from the ATB reason list, but says nothing about order_id, and the 'text' parameter is entirely unaddressed despite being undefined in the schema as well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names two distinct operations for one tool: enumerating ATB cancel reasons (a read) and cancelling an active order (a write). The verbs and resource are specific, but bundling a lookup mode and a destructive mode into a single sentence leaves the tool's primary identity ambiguous, and no sibling tool is named for contrast.

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?

'when confirm_cancel=True after approval' implies a gated two-step flow and hints that approval or a prior reason lookup precedes cancellation. However, it never states when to use the list mode versus the cancel mode, and gives no exclusions or alternatives for related flows such as submitting or previewing orders.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.