Skip to main content
Glama

order_cancel

Cancel an open IBKR order by order ID, with an optional manual cancel time, to prevent unwanted execution.

Instructions

Cancel an open order by orderId.

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": {
      "orderId": "<orderId>"
    },
    "name": "order_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYesOrder ID to cancel
manualOrderCancelTimeNoOptional manual cancel time

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/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 behavioral burden and does not meet it. It never states whether cancellation is irreversible, what happens to partially filled orders, whether permissions or order ownership matter, or what is returned on success versus a late/filled order.

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?

A single seven-word sentence with the action and the identifying parameter front-loaded; nothing is wasted. It is efficient, though nearly the minimum of structure an agent can work with.

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 mutation tool with no annotations and no output schema, the definition leaves out too much about effects and failure modes. An agent knows what to call it with but not what will happen or how to interpret the result.

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 both parameters are already documented in the schema and the baseline is 3. The description adds nothing beyond orderId and is silent on the optional manualOrderCancelTime, so it neither compensates nor misleads.

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 an open order") and a scoping qualifier ("by orderId"). The word "open" usefully narrows which orders are eligible, and the singular "an order" distinguishes it from orders_cancel_all without naming that sibling.

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?

Usage is implied only: the tool applies to open orders identified by orderId. There is no explicit guidance on when to prefer order_modify or whether orders_cancel_all should be used for batches, and no stated prerequisites.

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

Deploy Server

Other Tools