Skip to main content
Glama

bracket_order

Place a linked parent entry with take-profit and stop-loss orders together to define exits and risk for an Interactive Brokers trade.

Instructions

Place a bracket order: parent + take-profit + stop-loss. All three orders are linked and submitted together.

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": {
      "side": "<side>",
      "quantity": "<quantity>",
      "entryOrderType": "<entryOrderType>",
      "takeProfitPrice": "<takeProfitPrice>",
      "stopLossPrice": "<stopLossPrice>"
    },
    "name": "bracket_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
tifNo
sideYes
conIdNo
symbolNo
accountNo
secTypeNo
currencyNo
exchangeNo
quantityYes
transmitNo
outsideRthNo
stopLossPriceYesStop loss price
entryOrderTypeYesEntry order type (LMT, MKT)
entryLimitPriceNoEntry limit price
takeProfitPriceYesTake profit limit price

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does add genuinely useful behavior: all three orders are linked and submitted together, which tells the agent this is an atomic multi-leg submission rather than three separate calls. It says nothing about required account/permission context, what happens if one leg is rejected, or how transmit/tif affect submission.

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, front-loaded sentences with no filler; the structure puts the operation first and the key behavioral fact second. Slight redundancy exists between 'bracket order' and 'parent + take-profit + stop-loss', but it usefully spells out the leg composition.

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 15-parameter, 5-required order-submission mutation with no annotations and no output schema, the description is thin. An agent knows what it places but not enough about parameter interactions, submission side effects, or failure behavior to call it confidently without reverse-engineering the schema.

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 only 27% across 15 parameters, so the description must compensate and largely does not. It references take-profit and stop-loss legs but adds no meaning for entryLimitPrice interactions, tif, transmit, outsideRth, or contract identification (conId vs symbol/secType/exchange/currency).

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?

The description names a specific verb and resource ('Place a bracket order') and decomposes it into its three legs (parent, take-profit, stop-loss), which is more than a restatement of the name. It does not, however, explicitly distinguish this from sibling tools such as oco_order or order_place, leaving the agent to infer the distinction.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance; the agent is not told to prefer this over order_place when a single order suffices, nor over oco_order when only two linked legs are wanted. Usage is only implicit in the phrase 'bracket order'.

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