Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

cancel_all_orders

Cancel all open orders for a specified subaccount, with an option to include trigger (stop/TP) orders in the cancellation.

Instructions

Cancel ALL open orders for a subaccount. Use with caution.

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

Input Schema

NameRequiredDescriptionDefault
subaccount_idNo
cancel_trigger_ordersNoAlso cancel trigger (stop/TP) orders

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the action is bulk and cautions the user, but says nothing about reversibility, permissions required, what happens when subaccount_id is omitted (it is not required), or whether only trigger orders are excluded by default.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the high-impact word 'ALL' front-loaded and the risk note immediately after. Nothing is wasted, though the second sentence is a vague caution rather than actionable content.

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?

This is a destructive bulk mutation with no annotations, no output schema, and an optional scoping parameter — the riskiest profile in the catalog. The description omits blast radius, permission model, and the effect of omitting subaccount_id, leaving an agent unable to call it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%; cancel_trigger_orders is already documented in the schema, while subaccount_id is bare. The description does not clarify the critical ambiguity of an optional subaccount_id — whether omitting it cancels across every subaccount or falls back to a default.

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?

States a specific verb and resource — cancel ALL open orders — plus the scope, a subaccount. The word 'ALL' implicitly separates it from single-order or filtered cancels like cancel_order and cancel_by_instrument, but no sibling is named explicitly, so it stops short of a 5.

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?

'Use with caution' signals risk but is a warning rather than guidance; it never says when to prefer this over cancel_by_instrument, cancel_by_label, or cancel_order. The intended use case is reasonably implied by the bulk scope, so it is not a complete absence of guidance.

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