Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

get_order_book

Retrieve Level 2 order book data for a symbol to inspect market depth, bids, and asks at a configurable depth level.

Instructions

Get Level 2 order book data (market depth).

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

Input Schema

NameRequiredDescriptionDefault
depthNo
symbolYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it only says this returns Level 2 depth. It does not state whether the book is a point-in-time snapshot or streamed, whether it requires a market-data subscription, or what the currency/staleness characteristics of the data are.

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?

A single front-loaded sentence with no padding. It is efficient, though the brevity comes at the cost of the parameter and behavioral detail an agent actually needs.

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?

An output schema exists, so return values need not be explained, and the tool is a simple two-parameter read. However, with zero annotation coverage and zero schema descriptions, the definition leaves the meaning of both inputs and the data-delivery semantics unaddressed.

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%, so both parameters are undocumented, and the description does not compensate: it never explains that symbol identifies the contract or that depth controls how many price levels are returned (default 5). The only hint is the phrase "market depth," which is too oblique to resolve the meaning of the depth parameter.

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 uses a specific verb+resource ("Get Level 2 order book data") and parenthetically names the domain concept ("market depth"), so an agent knows exactly what data comes back. It does not distinguish itself from adjacent read tools like get_realtime_price or get_open_orders, which leaves sibling disambiguation to the agent.

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?

There is no guidance on when to use this versus get_realtime_price, get_open_orders, or other read tools, and no stated prerequisites such as subscription entitlements for L2 data. The agent must infer usage entirely from the tool name.

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