Skip to main content
Glama
indian-option-mcp

indian-option-mcp

Daily price history

get_price_history
Read-only

Retrieve daily OHLCV price history for NSE indices or listed stocks from official end-of-day bhavcopy archives. Use it for trend context, support and resistance levels, recent range, or volatility analysis.

Instructions

Get daily OHLCV price history for an NSE index (NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY, NIFTYNXT50, INDIAVIX) or any NSE-listed stock, from the official NSE end-of-day archives (bhavcopy). Use for trend context, support/resistance, recent range, or to feed volatility analysis. Works after hours and from networks where the live NSE API is blocked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "get_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of trading sessions to return (default 20, max 250)
symbolYesIndex (NIFTY, BANKNIFTY, INDIAVIX …) or NSE equity symbol (RELIANCE, TCS …)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive behavior, so the bar is lower; the description still adds real context by disclosing the archival EOD source and the operational conditions under which it succeeds when the live API fails. It does not state ordering, date anchoring, or behavior when a symbol is unknown/delisted, which would be the remaining behavioral gaps.

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

Conciseness4/5

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

Two sentences with no filler; scope and source are front-loaded before the use cases. The first sentence is dense with nested parentheses listing symbols, but the information is not redundant waste so much as a compact enumeration.

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?

For a two-parameter read tool with no output schema, the definition tells the agent what data comes back (OHLCV), its granularity (daily), and its provenance. Missing only minor operational detail such as row ordering or the date anchor for the window, which keeps it from a top score.

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 description coverage is 100%, so both parameters are already documented with types, bounds, and examples. The description's symbol list duplicates the schema's index examples and adds no syntax or format detail, and it never mentions the days parameter or its default. Baseline 3 applies when the schema does the heavy lifting.

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?

Specific verb plus resource ("Get daily OHLCV price history") with the universe explicitly enumerated (six indices or any NSE-listed stock) and the data source named (official NSE end-of-day bhavcopy archives). The word "daily" and "end-of-day" cleanly separate it from the sibling get_spot_price, which is a live quote tool.

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?

Explicit use cases are given: trend context, support/resistance, recent range, volatility analysis input. The closing sentence ("Works after hours and from networks where the live NSE API is blocked") is effectively a when-to-prefer-this condition over live-price siblings. It stops short of naming an alternative tool outright, which keeps it off a 5.

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