Skip to main content
Glama
Prem07a
by Prem07a

get_stock_price_history

Retrieve OHLCV price history for NSE/BSE Indian stocks using daily, weekly, or monthly bars. Select periods up to max to analyze past performance, with results capped at 500 bars for manageable data.

Instructions

Get OHLCV price history for an NSE/BSE-listed Indian equity. Intraday intervals aren't supported (out of scope for a fundamentals tool, and Yahoo restricts them to short windows anyway). Capped at 500 bars -- if a period/interval combination would return more, the oldest are dropped and truncated is set.

:param symbol: ticker symbol, e.g. "RELIANCE", "TCS.NS", or "TCS.BO"
:param period: how far back: 1mo, 3mo, 6mo, 1y, 2y, 5y, or max
:param interval: bar size: 1d, 1wk, or 1mo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNo1y
symbolYes
intervalNo1d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsYes
symbolYes
currencyNo
intervalYes
truncatedNoTrue if more bars were available than the 500-bar cap and the oldest were dropped
Install Server

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral disclosure burden. It reveals the unsupported intraday intervals, the 500-bar cap, the dropping of oldest bars, and the `truncated` flag. This goes well beyond the bare schema and gives useful operational expectations.

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 compact and well-structured: a concise lead paragraph followed by a parameter list. Every sentence adds useful information, and the main capability is front-loaded.

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

Completeness5/5

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

For a data-retrieval tool with no annotations and minimal schema descriptions, the description covers inputs, constraints, and even a return signal (`truncated`). The output schema can handle the remaining return-value details, so nothing critical is missing for correct invocation.

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?

Schema description coverage is 0%, but the description fully documents all three parameters: symbol with concrete examples, period with allowed values, and interval with allowed values. This completely compensates for the schema's lack of descriptions.

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?

States a specific verb ('Get'), resource ('OHLCV price history'), and universe ('NSE/BSE-listed Indian equity'). It is clearly distinct from siblings like get_dividend_history or get_company_profile, and the data type is unambiguous.

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

Usage Guidelines4/5

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

Provides explicit context on when this tool is appropriate: historical OHLCV for Indian equities, with intraday intervals explicitly excluded. It also explains the 500-bar cap behavior. However, it does not name a specific alternative tool for intraday data or other price-related needs.

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

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/Prem07a/FinMCP'

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