Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Cancel an order

order_cancel
Destructive

Cancel a single order by order_id; symbol is optional and auto-fetched when omitted. Use dry_run=true to preview the DELETE request before execution.

Instructions

Cancel one order by order_id. symbol is optional and auto-fetched when omitted. Call with dry_run=true to preview the DELETE request before executing.

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

Input Schema

NameRequiredDescriptionDefault
symbolNoSymbol of the order (auto-fetched if not provided)
accountNoAccount ID (auto-resolves if single account)
dry_runNoPrint the request payload without signing or sending it
networkNoNetwork override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config.
order_idYesorder-id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds genuinely new context: the underlying operation is a DELETE request, symbol is auto-resolved server-side, and dry_run prints the payload without signing or sending. It stops short of saying what happens to partially filled orders or whether failures are recoverable.

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?

Three short sentences, front-loaded with the core action, then the optional-parameter caveat, then the dry-run preview. Every sentence carries distinct information with no filler.

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 five-parameter mutation with annotations covering the safety profile, the description covers the operation, auto-resolution of symbol, and a safe preview path. With no output schema, the description could say what a successful cancel returns, which is the one remaining 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 coverage is 100%, so the schema already documents all five parameters including the dry_run and symbol semantics. The description largely restates that content rather than adding format details such as accepted order_id types or network defaulting behavior.

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

Purpose5/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 ('Cancel one order by order_id') and the word 'one' implicitly separates it from the bulk sibling order_cancel_all. An agent can identify the operation and its cardinality without opening 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 Guidelines4/5

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

It gives actionable invocation guidance — symbol is optional and auto-fetched, and dry_run=true previews the request. It does not explicitly state when to prefer this over order_cancel_all or what to do if the order is already filled, so it falls short of naming alternatives and exclusions.

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