Skip to main content
Glama
code-rabi

Interactive Brokers MCP Server

by code-rabi

place_order

Place market, limit, or stop orders for stocks and options on Interactive Brokers. Specify account, symbol, quantity, and order type to execute trades.

Instructions

Place a trading order. Examples:

  • Market buy: { "accountId":"abc","symbol":"AAPL","action":"BUY","orderType":"MKT","quantity":1 }

  • Limit sell: { "accountId":"abc","symbol":"AAPL","action":"SELL","orderType":"LMT","quantity":1,"price":185.5 }

  • Stop sell: { "accountId":"abc","symbol":"AAPL","action":"SELL","orderType":"STP","quantity":1,"stopPrice":180 }

  • Option buy: { "accountId":"abc","symbol":"AAPL","secType":"OPT","expiry":"JAN27","strike":200,"right":"C","action":"BUY","orderType":"LMT","quantity":1,"price":4.5 }

  • Option by conid: { "accountId":"abc","conid":123456789,"secType":"OPT","action":"BUY","orderType":"MKT","quantity":1 }

  • Suppress confirmations: { "accountId":"abc","symbol":"AAPL","action":"BUY","orderType":"MKT","quantity":1,"suppressConfirmations":true }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tifNo
conidNo
priceNo
rightNo
actionYes
expiryNo
strikeNo
symbolNo
secTypeNo
exchangeNo
quantityYes
accountIdYes
orderTypeYes
stopPriceNo
suppressConfirmationsNo
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It mentions suppressConfirmations but does not explain execution latency, cancellation policies, success/failure responses, or rate limits. The description lacks critical behavioral context for a mutation tool.

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?

The description is a single sentence followed by 6 concise examples. The examples are well-organized and add significant value without redundancy. It could be slightly more structured with a summary line, but overall it's efficient and front-loaded.

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?

Given 15 parameters, 4 required, no output schema, and no annotations, the description covers common order types and key parameters. However, it lacks details on return values, error handling, and some parameters (exchange, tif). For the complexity, it is moderately complete but has notable omissions.

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 coverage is 0% (no field descriptions), so the description must compensate. The examples effectively illustrate parameter relationships (e.g., symbol vs conid, secType and expiry for options, suppressConfirmations). However, some parameters like exchange and tif are not demonstrated, leaving minor gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Place a trading order' and provides multiple examples covering various order types (market, limit, stop, options). This makes the purpose explicit and distinguishes it from sibling tools like confirm_order or get_order_status.

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 does not explicitly state when to use this tool versus alternatives (e.g., confirm_order, get_order_status). Usage context is implied through examples, but there is no guidance on exclusion criteria or prerequisites (e.g., authentication or account validation).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/code-rabi/interactive-brokers-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server