Skip to main content
Glama

Tapetide - Indian Stock Market MCP

Price History (OHLCV)

get_price_history
Read-onlyIdempotent

OHLCV price history, one row per bar: date, open, high, low, close, raw_close, volume, delivery_pct, delivered_qty (volume x delivery_pct / 100, within volume/20,000 shares). Daily or weekly bars; default 365 days (max 2000). IMPORTANT: check meta.window before treating the series as complete. days is CAPPED at 2000 (meta.window.truncated), and a window over the ~25k-char result limit keeps the newest bars (meta.truncated). Either way meta.window.has_more: true means older bars exist: pass meta.window.next_cursor as end_date, and page until meta.window.has_more is false.

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_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays to look back (default 365, max 2000)
layoutNo"objects" (default): one object per bar. "rows": one "|"-separated string per bar in `meta.columns` order, about 3x the bars per call; use it for long ranges.
symbolNoREQUIRED. The stock symbol, e.g. "RELIANCE" or "TCS".
tickerNoAlias for `symbol`.
end_dateNoOptional YYYY-MM-DD upper bound (inclusive) for the window — the cursor for paging further back through history. Pass the `meta.window.next_cursor` from a truncated response to fetch the preceding page. Omit for the most recent window.
intervalNoBar size: "daily" (default) or "weekly", NOT the window length (use `days`). Only end-of-day bars exist: intraday ("1m"/"5m"/"1h") and "monthly" return an error.daily
identifierNoAlias for `symbol`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Number of days to look back (default 365, max 2000 — larger values are capped, see meta.window)"New value: +"Days to look back (default 365, max 2000)"
    • changedInput schema / properties / interval / description
      Previous value: -"Bar size: \"daily\" (default) or \"weekly\" — the AGGREGATION of each row, NOT the length of the window. Use `days` for the window (e.g. days:5 for the last 5 sessions). Only end-of-day bars exist: intraday values like \"1m\"/\"5m\"/\"15m\"/\"1h\" and \"monthly\" are NOT supported and return an explanatory error."New value: +"Bar size: \"daily\" (default) or \"weekly\", NOT the window length (use `days`). Only end-of-day bars exist: intraday (\"1m\"/\"5m\"/\"1h\") and \"monthly\" return an error."
    • addedInput schema / properties / layout
      Added value: +{
      +  "description": "\"objects\" (default): one object per bar. \"rows\": one \"|\"-separated string per bar in `meta.columns` order, about 3x the bars per call; use it for long ranges.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / days / description
      Previous value: -"Number of days to look back (default 365, max 2000 — larger values are capped, see meta.window.truncated)"New value: +"Number of days to look back (default 365, max 2000 — larger values are capped, see meta.window)"
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it as a safe, idempotent, non-destructive read; the description adds substantial behavior the annotations cannot convey — the 2000-day cap producing meta.window.truncated, truncation at the ~25k-char result limit that keeps the NEWEST bars, the has_more/next_cursor paging contract, and the derived delivered_qty formula.

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?

Front-loads the return shape (column list) before the operational traps, and every clause carries information — the truncation/root-cause warning and the paging recipe are both load-bearing. No filler or restated title.

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 and 7 parameters, the description covers what an agent needs: the returned columns, the meta.window flags, and the recovery action for each truncation case. Nothing required to call or interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description ties the parameters into a workflow the schema states only piecewise: `end_date` is the cursor fed from meta.window.next_cursor, `interval` is bar size not window length, and `layout` buys ~3x more bars per call. Much of this duplicates schema text, hence not a 5.

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?

States a specific resource and shape: 'OHLCV price history, one row per bar', then enumerates the exact columns returned. It does not name a sibling it is distinct from (e.g. get_index_history), but the stock `symbol` framing and column list make the scope 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?

Gives concrete operating guidance: daily vs weekly bars, default 365/max 2000 days, use `rows` layout for long ranges, and an explicit paging loop ('pass meta.window.next_cursor as end_date, and page until has_more is false'). No when-not-to-use or named alternative tool is offered, so it stops short of full routing guidance.

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.