Skip to main content
Glama
code-rabi

Interactive Brokers MCP Server

by code-rabi

place_order

Place market, limit, or stop trading orders. Requires account, symbol, action, order type, and quantity. Optionally set price, stop price, or suppress confirmations.

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 }

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYes
symbolYes
actionYes
orderTypeYes
quantityYes
priceNo
stopPriceNo
suppressConfirmationsNo
exchangeNo
tifNo
Behavior2/5

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

The description does not disclose behavioral traits such as whether the order is executed immediately, if confirmations are required (only hinted via suppressConfirmations in examples), or what happens upon failure. With no annotations, this is insufficient.

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 concise at two sentences followed by examples. It is front-loaded with the purpose, and the examples are well-structured. A slight deduction for not being even more concise.

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?

Given 10 parameters, no output schema, and no annotations, the description should provide more context on return values, error handling, and workflow (e.g., need for confirmation). The examples only cover basic usage.

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

Parameters3/5

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

Despite 0% schema description coverage, the examples illustrate the usage of 7 out of 10 parameters (accountId, symbol, action, orderType, quantity, price, stopPrice, suppressConfirmations). However, exchange and tif are not explained, leaving 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 explicitly states 'Place a trading order' which is a specific verb+resource combination. The examples further clarify the action, distinguishing 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 Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as confirm_order or create_alert. There is no mention of prerequisites, like requiring authentication or having sufficient funds.

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