Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

place_twap_order

Place a time-weighted average price (TWAP) algorithmic order via Interactive Brokers; approval is required by default, with confirm=True or autonomous mode to transmit.

Instructions

Place a TWAP (Time-Weighted Average Price) algorithmic order.

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

Input Schema

NameRequiredDescriptionDefault
actionYes
symbolYes
confirmNo
end_timeNo
exchangeNoSMART
quantityYes
sec_typeNoSTK
start_timeNo
strategy_typeNoMarketable

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 behavioral burden. It usefully discloses the non-obvious two-step approval gate, the confirm=True retry, and the IBKR_MCP_AUTONOMOUS_EXECUTION override — real value beyond the schema. It omits whether the first call stages/queues an order, whether the order can be cancelled or modified afterward, and what happens if end_time is left empty.

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 then the operational protocol; there is no filler or repetition. The brevity is well executed, though it comes at the cost of the parameter coverage noted elsewhere.

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 not be described, but for a live-order-placing mutation with 9 undocumented parameters and no annotations, the description is thin. Key execution semantics (schedule window, strategy_type choices, order-size interpretation) are absent, leaving an agent unable to invoke it confidently beyond the trivial case.

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 9 parameters, so the description must compensate and it largely does not. It explains only 'confirm' (in the context of the approval flow) and says nothing about action, symbol, quantity, exchange, sec_type, strategy_type, or the start_time/end_time window that defines the TWAP schedule — arguably the most semantically important inputs.

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 TWAP ... algorithmic order') and names the algorithm family, which distinguishes it from place_order or place_bracket_order. It does not, however, distinguish it from its closest siblings place_vwap_order and place_arrival_price_order beyond the label.

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?

The only guidance given concerns the approval/confirm invocation protocol, not when to select this tool. With siblings such as place_vwap_order, place_arrival_price_order, and place_adaptive_order present, an agent gets no criteria for choosing TWAP over those alternatives, and no exclusions.

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