Skip to main content
Glama
Indian Stock Exchange MCP Server

Indian Stock Exchange MCP Server

by prakharv-ops

Price and valuation history

get-stock-history
Read-onlyIdempotent

Fetch historical series for a stock's price, P/E, price-to-book, sales and margins, or EV multiples. Choose a look-back period to analyze trends.

Instructions

Historical series for a stock: price, P/E, price-to-book, sales/margins or EV multiples.

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": {
      "name": "<name>"
    },
    "name": "get-stock-history"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCompany name or NSE symbol (e.g. 'Infosys')
metricNoprice; pe = price/earnings; pb = price/book; sm = sales & margins; ev = EV multiplesprice
periodNoLook-back window1yr

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=true, so the safety and repeatability profile is covered. The description adds only that the tool returns a series with selectable metric types; it says nothing about granularity, adjustment for splits/dividends, or how the look-back window is sampled.

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?

A single lean sentence with the resource stated first and the metric options listed after the colon. Nothing is redundant, though the sentence fragment omits a verb and could not stand alone outside the tool context.

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

Completeness3/5

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

For a simple 3-parameter read-only series tool with a fully documented schema and no output schema, the description covers the essentials. It stops short of telling an agent what the returned series looks like (e.g., list of dated points vs. aggregated values), which matters when no output schema exists.

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%, with both enums (metric, period) fully documented including defaults, so the schema carries the parameter burden. The description merely restates the metric vocabulary and adds no new semantics such as unit, normalization, or default behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete resource (a stock's historical series) and enumerates the metrics covered (price, P/E, P/B, sales/margins, EV multiples). 'Historical series' implicitly separates it from point-in-time siblings like get-stock-price, though it never names an alternative explicitly.

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?

Usage is only implied by the word 'Historical' — an agent can infer this is for time-series rather than current values, but there is no explicit when-to-use, when-not-to-use, or named alternative among the many sibling tools.

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