Skip to main content
Glama

Cancel an agent order

cancel_agent_order

Cancel a confirmed agent order (either side). The seller's item becomes available again.

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": {
      "deal_id": "<deal_id>"
    },
    "name": "cancel_agent_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
deal_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

The description adds real context beyond the annotations by disclosing that the seller's item becomes available again. It does not mention that the operation is non-idempotent (per idempotentHint=false), whether cancellation is reversible, or what permissions or order states are required — meaningful gaps for a mutation tool.

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?

Two short sentences, front-loaded with the action and scope, with the consequence stated second. No filler or redundancy.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and the core effect is stated. For a non-idempotent mutation, though, an agent would still benefit from knowing the required order state, permission model, and failure behavior, none of which appear.

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% and the description says nothing about either parameter. 'deal_id' is required and 'reason' is an optional nullable string, but neither its format, its role, nor what happens if reason is omitted is explained. The description does not compensate for the schema gap.

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?

The description names a specific verb ('Cancel') and resource ('confirmed agent order') and adds a scope qualifier ('either side') plus a stated side effect. It is clear apart from siblings such as decline_order or approve_order, but it never explicitly contrasts itself with them.

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 'confirmed' implies the precondition for use, and '(either side)' signals both buyer and seller may invoke it. However, there is no when-not guidance, no mention of what to do for an unconfirmed or already-cancelled order, and no named alternative tool.

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.