Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

place_one_cancels_all

Places a One-Cancels-All order group so filling any one order automatically cancels the others. Requires approval by default; re-call with confirm=true to transmit.

Instructions

Place One-Cancels-All (OCA) order group.

Approval-required by default; re-call with confirm=True to transmit, or set IBKR_MCP_AUTONOMOUS_EXECUTION=true to skip approval.

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": {
      "orders": "<orders>",
      "oca_group": "<oca_group>"
    },
    "name": "place_one_cancels_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
ordersYes
confirmNo
oca_typeNo
oca_groupYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the most important behavior: orders are not transmitted by default and require an explicit approval step or an env-var override. It does not disclose whether a transmitted OCA group is irreversible, how cancellation of one leg affects the others, or what the response contains, so it is strong but not complete on a money-moving operation.

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, front-loaded with the operation and immediately followed by the operational caveat; nothing is redundant. The second sentence is dense but remains readable and earns its space.

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 live trading mutation with no annotations and 0% schema coverage, the definition leaves too much unexplained: the structure of each order in the orders array, the meaning of oca_type values, and the consequences of transmitting are all absent. The output schema exists, so return values need not be described, but the input side is seriously under-specified.

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 description coverage is 0% across 4 parameters, so the description must compensate. It explains only confirm (approval gate) and leaves oca_group, oca_type (integer, default 1, no meaning given), and especially the per-order object schema inside orders completely undefined.

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?

Names a specific verb and resource ('Place One-Cancels-All (OCA) order group'), which is clearly distinct from place_order and place_bracket_order by resource type. It does not explicitly state how it differs from the other place_* siblings, so it stops short of full sibling differentiation.

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 is implied by the OCA concept and the description explains the two-step invocation flow (call, then re-call with confirm=True or set IBKR_MCP_AUTONOMOUS_EXECUTION=true). It never says when an OCA group is preferable to a bracket or plain order, nor any preconditions such as account permissions or required order validity.

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