Skip to main content
Glama

stock_historical

Retrieve historical stock price data including OHLCV and summary statistics for analysis. Specify ticker symbol, time period, and data interval to access global market information.

Instructions

Get historical price data for any global stock.

Returns OHLCV data with summary stats.

Args: symbol: Stock ticker (e.g., AAPL, MSFT, TSLA) period: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max interval: 1m, 5m, 15m, 30m, 1h, 1d, 5d, 1wk, 1mo

Examples: stock_historical("AAPL", "1y", "1d") → Apple 1 year daily stock_historical("TSLA", "3mo", "1wk") → Tesla 3 month weekly

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
periodNo1mo
intervalNo1d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. It successfully discloses return format (OHLCV data with summary stats) and scope (global stocks), but omits mutation/safety details, rate limits, or error behavior.

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?

Excellent structure with clear sections: purpose statement, return value description, Args documentation, and Examples. Every sentence earns its place; examples efficiently demonstrate valid parameter combinations without redundancy.

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 the output schema exists (per context signals), the description appropriately summarizes returns (OHLCV) without over-specifying. Parameters are fully documented. Minor gap: no mention of data availability limits or error handling for invalid symbols.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the description fully compensates by documenting all 3 parameters with valid value enumerations (e.g., '1d, 5d, 1mo...') and concrete examples (AAPL, MSFT), adding essential semantic meaning absent from 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?

Description states specific action 'Get historical price data' and resource 'global stock', clearly distinguishing it from siblings like crypto_historical (cryptocurrency) and nse_historical (India-specific exchange).

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

Usage Guidelines3/5

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

Provides concrete usage examples showing parameter combinations (e.g., '1y' with '1d'), but lacks explicit when-to-use guidance versus alternatives like stock_quote (likely real-time) or when to prefer nse_historical for Indian equities.

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/finstacklabs/finstack-mcp'

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