Skip to main content
Glama

Tapetide - Indian Stock Market MCP

Index Level History

get_index_history
Read-onlyIdempotent

Get the historical LEVEL series (OHLC + PE/PB/dividend yield) for a single NSE INDEX — Nifty 50, Nifty Bank, Nifty IT, Nifty Oil & Gas, India VIX, and ~140 more. Official NSE index data. Use for 'what did Nifty IT close at on ', 'Nifty Bank level history', 'India VIX over the last month', or index valuation trend. This is the INDEX counterpart of get_price_history (which handles individual stocks only). To rank or compare MULTIPLE indices by return, use get_index_performance instead. Over the size limit the newest bars are returned (data.page); while meta.window.has_more, pass meta.window.next_cursor as end_date. count/from/change_pct cover the whole window, ending at end_date when given.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_index_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoAlias for `index_name`.
daysNoAlias for `interval`: a lookback in calendar days, mapped to the smallest served window that covers it.
slugNoAlias for `index_name`.
indexNoAlias for `index_name`.
rangeNoAlias for `interval`.
symbolNoAlias for `index_name`.
end_dateNoInclusive end, YYYY-MM-DD (default: latest). Paging cursor.
intervalNoLOOKBACK window, one of 1m, 3m, 6m, 1y, 2y, max (default 3m). Bars are daily up to 1y, weekly for 2y/max. Not a bar size: intraday is not served.
identifierNoAlias for `index_name`.
index_codeNoAlias for `index_name`.
index_nameNoREQUIRED. Index name, e.g. 'Nifty 50', 'Nifty IT', 'Nifty Oil & Gas'
index_slugNoAlias for `index_name`.
index_symbolNoAlias for `index_name`.
index_identifierNoAlias for `index_name`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / end_date
      Added value: +{
      +  "description": "Inclusive end, YYYY-MM-DD (default: latest). Paging cursor.",
      +  "type": "string"
      +}
  2. Changed7 schema fields changed
    • addedInput schema / properties / code
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / identifier
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / index_code
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / index_identifier
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / index_slug
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / index_symbol
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Alias for `index_name`.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly, idempotent, not destructive, closed-world), and the description goes further by disclosing the data source (official NSE), the truncation behaviour over the size limit (newest bars in data.page), the cursor contract (meta.window.has_more / next_cursor passed as end_date), and that aggregate fields span the whole window. It stops short of stating auth or rate-limit expectations, so it is not a full 5.

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?

It is front-loaded with purpose and examples, then alternatives, then paging mechanics, which is the right order. The single dense paragraph is longer than necessary but nearly every clause carries operational information; splitting the paging note into its own sentence would improve scannability.

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?

With no output schema, the description still names the returned fields (OHLC, PE/PB/dividend yield), the summary fields (count/from/change_pct), the payload location (data.page), and the metadata shape (meta.window). Together with the annotation set, an agent has enough to call this correctly and handle truncation.

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 all 14 parameters, including the alias set for index_name and the interval/end_date semantics, are already documented in the schema. The description restates the interval-is-a-lookback-not-bar-size rule and the paging role of end_date, which is modest added value rather than new meaning; 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?

The description gives a specific verb and resource ("historical LEVEL series (OHLC + PE/PB/dividend yield) for a single NSE INDEX") and enumerates representative indices, so an agent can tell exactly what comes back. It explicitly distinguishes itself from both get_price_history (stocks only) and get_index_performance (multi-index ranking).

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

Usage Guidelines5/5

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

It supplies concrete when-to-use phrasings ("what did Nifty IT close at on <date>", "India VIX over the last month", "index valuation trend") and an explicit when-not with the correct alternative for multi-index comparison. Nothing about routing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.