Skip to main content
Glama

wm_cancel_order

Cancel an unfilled Whales Market order and settle the cancellation on-chain, with optional dry-run preview and chain auto-detection to avoid executing unintended cancellations.

Instructions

Cancel an unfilled order on Whales Market (settleCancelled on-chain)

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

Input Schema

NameRequiredDescriptionDefault
symbolNoToken symbol for chain auto-detect
dry_runNoPreview without executing
chain_idNoChain ID for EVM orders
order_idNoOrder ID to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose that cancellation settles on-chain via settleCancelled, which signals a real, potentially irreversible state change. It stops short of stating whether the action costs gas, requires the caller to own the order, what happens if the order was already partially filled, or what the response contains.

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?

A single sentence with no filler, front-loading the action and resource, with the on-chain mechanism appended as a parenthetical. Nothing is wasted and nothing essential is buried.

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?

For a four-parameter, zero-required mutation tool with no annotations and no output schema, the description covers the core action but leaves out irreversibility, ownership/auth requirements, and the effect of dry_run. It is minimally adequate but an agent would need to infer several operational details.

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 all four parameters (symbol, dry_run, chain_id, order_id) are already documented in the schema and the baseline is 3. The description adds no additional meaning about how these parameters interact, such as whether order_id alone is sufficient or how chain_id and symbol are resolved together.

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 gives a specific verb and resource ('Cancel an unfilled order on Whales Market') plus the on-chain mechanism (settleCancelled), so an agent knows exactly what the tool does. It does not explicitly distinguish itself from close siblings such as 'cancel' or 'trade', but the scope (unfilled orders on Whales Market) is narrow enough to be actionable.

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 phrase 'unfilled order' implicitly constrains when the tool applies (not filled orders), which is useful usage context. However, there is no explicit guidance on when to prefer this over the sibling 'cancel' tool, no stated prerequisites (e.g., wallet connected, ownership of the order), and no mention of when dry_run should be used.

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