Skip to main content
Glama

Stock Price Candles (OHLCV)

stocks.market.candles
Read-onlyIdempotent

Retrieve historical OHLCV candlestick data (open, high, low, close, volume) with configurable resolution from 1 minute to monthly for charting and technical analysis.

Instructions

Historical OHLCV candlestick data — open, high, low, close, volume with configurable resolution (1min to monthly). Use for charting and technical analysis (Finnhub)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker symbol (e.g. "AAPL")
resolutionNoCandle resolution: "1","5","15","30","60" (minutes), "D" (day), "W" (week), "M" (month). Default: "D"
fromNoStart timestamp (Unix seconds). Default: 30 days ago
toNoEnd timestamp (Unix seconds). Default: now

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior3/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, idempotentHint=true, so the description doesn't need to repeat these. The description adds minimal behavioral context, only mentioning the data source (Finnhub) in parentheses. It does not disclose rate limits, pagination, or data limits.

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 sentence that conveys all essential information without redundancy. It is compact and front-loaded: the core function is stated immediately.

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 presence of an output schema (not shown) and full annotations, the description suffices for a simple historical data retrieval tool. It could be improved by mentioning max data points or resolution defaults, but it is largely complete.

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% with detailed parameter descriptions. The description adds a human-readable summary of resolution options ('1min to monthly') but does not significantly enhance understanding beyond the schema. Baseline 3 is appropriate.

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 tool returns historical OHLCV candlestick data with configurable resolution, specifically for charting and technical analysis. It is distinct from sibling tools like stocks.market.quote (current price) or stocks.company.news.

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?

The description gives a use case ('charting and technical analysis') but does not explicitly state when not to use this tool or compare it to alternatives like stocks.market.quote for real-time data. The guidance is implicit rather than explicit.

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/whiteknightonhorse/APIbase'

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