Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Cancel all orders

order_cancel_all
Destructive

Cancels every open order on Orderly Network, optionally limited to one symbol, when an explicit cancel-all request requires clearing pending orders. Destructive with no dry-run; use single-order cancellation otherwise.

Instructions

Cancel every open order, optionally limited to one symbol. This is destructive and has no dry-run; prefer order_cancel for a single order unless the user explicitly asks to cancel all.

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

Input Schema

NameRequiredDescriptionDefault
symbolNoFilter by symbol (optional)
accountNoAccount ID (auto-resolves if single account)
networkNoNetwork override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description nonetheless adds the non-obvious fact that there is no dry-run, which is real value for a bulk mutation. It stops short of describing auth requirements, partial-failure behavior, or whether the response reports which orders were canceled, keeping it at a 4 rather than a 5.

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, no filler, with the scope statement and the destructive/no-dry-run warning front-loaded before the routing advice. Every clause carries information an agent needs.

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 destructive bulk-cancel with three optional parameters, rich annotations, and no output schema, the definition covers scope, safety, and alternative selection adequately. It leaves minor gaps around return value and partial failure, but nothing that would cause a misinvocation.

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 each of the three parameters is already documented, and the description only restates the symbol filter's meaning as an optional scope limit. The account and network parameters are not elaborated on, but with a fully documented schema the baseline 3 is appropriate.

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 opens with a specific verb and resource, "Cancel every open order," and immediately states the scope modifier ("optionally limited to one symbol"). This lets an agent distinguish it from the sibling order_cancel (single order) without opening either schema.

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

Usage Guidelines5/5

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

It explicitly names the preferred alternative (order_cancel) and gives the precise condition that selects this tool instead: only when the user explicitly asks to cancel all. It also notes the optional symbol filter as a narrowing path, so both when-to-use and when-not-to-use are covered.

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