Skip to main content
Glama

Orders cancel

orders_cancel
DestructiveIdempotent

Take one of your orders off the book, by the kind and id orders_list_mine returned: a listing is archived, an intent withdrawn while its bid window runs, a token order's unfilled remainder cancelled. Cancelling a cancelled order returns it unchanged.

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": {
      "kind": "<kind>",
      "id": "<id>"
    },
    "name": "orders_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe order's id, as orders_list_mine returned it.
kindYesThe order's kind, as orders_list_mine returned it: listing, intent or token_order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known; the description earns credit by specifying what destruction actually means per kind (listing archived, intent withdrawn mid-window, token order remainder cancelled). The closing note that cancelling an already-cancelled order returns it unchanged adds concrete idempotency behavior, though it says nothing about auth, escrowed funds, or whether the withdrawn intent can be re-posted.

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?

The action is front-loaded in the first clause, followed by the three kind-specific effects and a single caveat sentence. Every clause carries information; nothing is padded or restated from the title.

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 two-parameter destructive mutation with no output schema, the description covers what happens to each order type and what an already-cancelled order yields, which is most of what an agent needs. It stops short of covering side effects like fund release or whether the operation is reversible, which matters more given destructiveHint=true.

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% and both schema fields already state 'as orders_list_mine returned it', so the description's provenance phrasing largely repeats structured data. Its only genuine addition is tying `kind` to distinct cancellation outcomes, which gives the enum values meaning beyond the schema's flat list.

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 states a specific verb and resource ('Take one of your orders off the book') and immediately enumerates the three order kinds and what cancelling means for each (archived, withdrawn, remainder cancelled). It clearly differs from read-side siblings like orders_get or orders_list_mine, which it only references as the id source rather than as an alternative.

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?

Usage is implied: cancel an order you own, identified by the kind/id pair that orders_list_mine produced, with per-kind effects spelled out. There is no explicit when-not guidance (e.g., what to do once a bid window has closed, or whether seller_archive_listing should be preferred over cancelling a listing), so the agent must infer exclusions.

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.