Skip to main content
Glama
pedrobraiti

mcp-ibkr-agent

by pedrobraiti

buy

Purchase stocks using cash amount for fractional shares or quantity for full shares. Add limit price for limit orders; omit for market orders.

Instructions

Buy. Provide cash_amount (US$, fractional via cashQty) OR quantity (shares).

Omit limit_price for a market order. Pass limit_price for a LIMIT order — LIMIT requires quantity (cashQty is market-only). A limit order may surface a confirmation IBKR hasn't mapped yet; if so it is blocked (safe) until allow-listed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
quantityNo
cash_amountNo
limit_priceNo
Behavior4/5

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

With no annotations, the description takes on the burden of behavioral transparency. It reveals that limit orders may be blocked if the symbol is not allow-listed, and that cashQty is market-only. This is helpful disclosure. It does not discuss fees, partial fills, or order lifecycle.

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?

The description is concise, well-structured with line breaks, and every sentence provides necessary information without redundancy. It is easy to scan and understand.

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

Completeness4/5

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

Despite having no output schema and no annotations, the description covers the main input constraints and a behavioral nuance. Lacks prerequisites (e.g., account funding) and details on order execution outcomes, but for a buy tool with 4 parameters, it is fairly complete.

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%, so the description must explain parameters. It clarifies the mutual exclusivity of cash_amount and quantity, the role of limit_price, and that cash_amount represents US dollars. This adds significant value beyond the schema.

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 the tool is for buying stocks or fractional shares. The verb 'buy' plus the parameter explanation makes the purpose unambiguous. It distinguishes from siblings like 'sell' implicitly.

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

Usage Guidelines4/5

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

The description provides clear guidance on when to use cash_amount vs quantity, and when to include limit_price for limit orders. It also explains a behavioral nuance about limit orders. However, it does not explicitly contrast with related order types like stop_order or trailing_stop.

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/pedrobraiti/agentic-trading-mcp'

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