Skip to main content
Glama
atomcp-ai

ib-async-mcp

by atomcp-ai

get_historical_data

Retrieve historical price bars for any contract type and symbol. Specify duration, bar size, and data type to analyze past market movements.

Instructions

Get historical bar data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contract_typeYes
symbolYes
exchangeNoSMART
currencyNoUSD
durationNoDuration (e.g., '1 D', '1 W', '1 M', '1 Y')1 D
bar_sizeNoBar size (e.g., '1 min', '5 mins', '1 hour', '1 day')1 hour
what_to_showNoData type: TRADES, MIDPOINT, BID, ASKTRADES
use_rthNoRegular trading hours only
Behavior1/5

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

With no annotations, the description carries full burden but says nothing about behavioral traits like read-only nature, potential rate limits, or data source. The description is insufficient for an agent to understand side effects or constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While brief, the description is under-specified. It lacks essential context, making it less useful despite its short length.

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

Completeness1/5

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

The description is far from complete. It does not mention the need for a connection, the format of returned data, or any limitations. For a tool with 8 parameters and no output schema, the description should provide much more context.

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 coverage is 50%, but the description adds no meaning beyond the schema. For example, it does not explain that contract_type could be 'STK' or 'OPT', or that symbol is the ticker. The description fails to compensate for undocumented parameters.

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 clearly states it gets historical bar data, which distinguishes it from siblings like get_historical_news. However, it is very terse and lacks detail about what 'bar data' entails.

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 tool versus alternatives. For example, it does not indicate prerequisites like needing an active connection or that it might be used for backtesting.

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/atomcp-ai/ib-async-mcp'

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