Skip to main content
Glama

get_historical_prices

Retrieve OHLC price history for any stock over a specified period and bar interval.

Instructions

Retrieve OHLC price history for a stock over a given period.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoHow far back to retrieve data (default 1mo)1mo
symbolYesStock ticker symbol
intervalNoBar interval (default 1d)1d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsYes
periodYes
symbolYes
intervalYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It correctly implies a read operation ('Retrieve'), but does not disclose other behavioral traits such as authentication requirements, rate limits, or whether the data is cached. For a simple historical data tool, this is adequate but not comprehensive.

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 a single, concise sentence with no unnecessary words. It is front-loaded and efficient.

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?

Given that an output schema exists, the description does not need to explain return values. It covers the core action and scope. However, it could mention that the data is historical and that interval is optional, but the schema handles that. Overall, it is complete for a tool of this complexity.

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 coverage is 100%, so the baseline is 3. The description adds no additional meaning beyond the schema; it mentions 'OHLC price history' but does not elaborate on the specific fields returned. The schema already documents parameters with enums and defaults, so the description is sufficient but not exemplary.

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 action ('Retrieve'), the resource ('OHLC price history'), and the scope ('for a stock over a given period'). It effectively distinguishes from siblings like get_stock_quote (current price) and compute_rsi (derived indicator).

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention when not to use it, such as for current prices (use get_stock_quote) or for technical indicators (use compute_rsi).

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/mfarhan0304/MCP-MarketMind'

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