Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

scan_market

Scans Interactive Brokers markets using codes like TOP_PERC_GAIN or MOST_ACTIVE to return ranked instruments for screening and opportunity discovery.

Instructions

Run a market scanner (TOP_PERC_GAIN, MOST_ACTIVE, etc.).

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": {
      "scan_code": "<scan_code>"
    },
    "name": "scan_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationNoSTK.US.MAJOR
num_rowsNo
scan_codeYes
instrumentNoSTK

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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. It does not state that the operation is a read, that results are capped by num_rows, what the default US-major location implies, or how many rows come back — all material for a scan tool with a 50-row default.

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 filler, which is appropriate for a short definition. The terseness, however, reflects under-specification rather than disciplined editing.

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 explained, but three of four parameters (location, num_rows, instrument) are undefined anywhere and there are no annotations to cover behavior. For a scanner with region and row-count controls, this leaves the agent guessing on invocation.

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?

Schema description coverage is 0% across 4 parameters, so the description must compensate. It adds meaning only for scan_code by naming two valid values (TOP_PERC_GAIN, MOST_ACTIVE); location, num_rows, and instrument are left entirely undocumented in both schema and description.

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+resource ("Run a market scanner") and gives two example scan codes, so the agent knows it queries prebuilt market screens. It does not distinguish itself from the sibling scan_options_volume, so an agent cannot tell from the description alone which scanner applies to options vs equities.

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 on when to use this scanner versus scan_options_volume or create_custom_scanner, and no prerequisites or exclusions. The agent must infer applicability purely from the tool name and the example scan codes.

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