Skip to main content
Glama

order_place

Places a new Interactive Brokers order with side, quantity, order type, and a qualified contract while enforcing pre-trade risk guardrails such as quantity, notional, and symbol limits.

Instructions

Place a new order. Requires: side, quantity, order type, and a qualified contract. Enforces all guardrails (read-only check, max qty, max notional, allowed order types, symbol allowlist/denylist).

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>",
      "orderType": "<orderType>"
    },
    "name": "order_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
tifNoTime in force: DAY, GTC, IOC, FOK, OPG, DTC
sideYesBUY or SELL
conIdNoContract ID (from contract_qualify)
symbolNo
accountNoAccount ID (for FA accounts)
ocaTypeNo
secTypeNo
auxPriceNoAux/stop price (for STP, STP_LMT, TRAIL)
currencyNoCurrency (default: USD)
exchangeNoExchange (default: SMART)
ocaGroupNo
parentIdNo
quantityYesOrder quantity
transmitNoTransmit immediately (default: true). Set false to create without sending.
orderTypeYesLMT, MKT, STP, STP_LMT, MOC, LOC, MIT, TRAIL, etc.
algoParamsNo
limitPriceNoLimit price (required for LMT, STP_LMT)
outsideRthNoAllow outside regular trading hours
algoStrategyNo
goodTillDateNo
goodAfterTimeNo
trailStopPriceNo
trailingPercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add genuine behavioral value by enumerating the guardrails enforced (read-only check, max quantity, max notional, allowed order types, symbol allow/deny lists), which tells the agent calls can be rejected. It omits what a rejection looks like, whether an order ID is returned, and how transmit=false affects placement beyond the schema's own note.

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

Conciseness5/5

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

Two tight sentences, zero filler, with the required-inputs constraint and the guardrail behavior both front-loaded. Nothing needs to be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 23-parameter mutation tool with no annotations and no output schema, the definition covers the essentials (what it does, what it needs, what it enforces) but leaves large gaps: rejection behavior, order-type-specific price requirements, and the role of OCA/bracket-related fields are all unexplained. It is adequate to attempt a call but not to predict outcomes confidently.

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?

With 23 parameters and only 52% schema description coverage, the description should compensate for the gaps, but it mentions only three of them and adds no meaning beyond what the schema already says. Fields with no schema description at all (symbol, secType, ocaType, ocaGroup, parentId, algoParams, trailStopPrice, goodTillDate, goodAfterTime) receive no clarification.

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 opens with a specific verb and resource ('Place a new order') and implicitly points at the contract_qualify prerequisite via 'a qualified contract'. It does not distinguish itself from sibling order-entry tools such as bracket_order or oco_order, so an agent cannot tell from the description alone which order-entry path applies.

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?

It states the preconditions for calling (side, quantity, order type, and a qualified contract), which is real usage guidance. However, it never names an alternative tool or states when NOT to use this one, and the only routing hint to contract_qualify lives in the conId schema field rather than the description.

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