Skip to main content
Glama

cancel

Cancel an open order or offer by order ID, optionally specifying venue and chain ID, to prevent unwanted trades across prediction markets and DEXs.

Instructions

Cancel an open order/offer.

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

Input Schema

NameRequiredDescriptionDefault
venueNoVenue name
chain_idNoChain ID for EVM (auto-detected if possible)
order_idYesOrder/offer ID to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/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 and falls well short: it does not say whether cancellation is irreversible, what happens if the order is partially filled, whether authentication or wallet setup is required, or what is returned. The only behavioral hint is the word "open", which implies a state precondition.

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?

The single sentence is front-loaded and contains no filler, but it is under-specified rather than concise — the brevity comes at the cost of the usage and behavioral information an agent needs for a mutation tool.

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 destructive, unannotated mutation tool with a sibling that performs a similar-sounding action, the description is far too thin: no failure modes, no side effects, no distinguishing from wm_cancel_order. The rich schema offsets this only slightly, since parameters are not the gap.

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%, so venue, chain_id and order_id are already documented in the schema, and the baseline of 3 applies. The description adds nothing beyond mapping "order/offer" to order_id and gives no hint about how venue or chain_id interact with cancellation.

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?

"Cancel an open order/offer" states a specific verb (cancel) and resource (order/offer), so the agent knows the operation immediately. It does not differentiate from the sibling wm_cancel_order, and the slash-joined "order/offer" leaves which object type is targeted to the schema.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (e.g. the order must still be open and unfilled), and no routing to alternatives such as wm_cancel_order or wm_react_to_offer. The agent must infer from the word "open" that non-open orders cannot be cancelled.

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