Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

place_bracket_order

Submit an entry order bundled with take-profit and stop-loss legs to cap risk on a trade. Requires confirmation to transmit unless autonomous execution is enabled.

Instructions

Place a bracket order (entry + take profit + stop loss).

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": {
      "symbol": "<symbol>",
      "action": "<action>",
      "quantity": "<quantity>",
      "entry_price": "<entry_price>",
      "profit_target": "<profit_target>",
      "stop_loss": "<stop_loss>"
    },
    "name": "place_bracket_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
symbolYes
confirmNo
exchangeNoSMART
quantityYes
sec_typeNoSTK
stop_lossYes
entry_priceYes
profit_targetYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden and it does disclose the two-phase approval gate and the environment flag that bypasses it, which is the most important behavioral trait here. It stops short of stating that this transmits live orders with real financial consequence, what happens on rejection or if one leg fills and others do not, or how the legs are linked.

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 action and its composition, then the approval caveat. No filler; slight deduction because the environment-variable detail sits before any explanation of the parameters.

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?

An output schema exists so return values need no explanation, but this is a high-stakes order-transmission tool with zero annotations and 9 undocumented parameters. The definition should at minimum pin down action values, quantity units, and the consequence of transmitting, none of which appear.

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

Parameters4/5

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

Schema description coverage is 0% and there are 9 parameters, so the description must compensate; it does name the three price legs implicitly through the bracket definition and calls out confirm. It says nothing about action values (no enum, so BUY/SELL casing is guesswork), quantity units, exchange default, sec_type, or symbol format.

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 (place a bracket order) and defines the term inline as entry + take profit + stop loss, so the agent knows this is a three-legged order rather than a plain order. It does not explicitly differentiate itself from siblings like place_order or place_trailing_stop, which keeps it 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?

The description explains the approval workflow (re-call with confirm=True, or set IBKR_MCP_AUTONOMOUS_EXECUTION=true), which is real when-to-use guidance about a prerequisite. However, it gives no guidance on when to choose this over place_order or place_trailing_stop, and no stated preconditions such as having a funded account or an open connection.

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