Skip to main content
Glama

Tapetide - Indian Stock Market MCP

Index Membership As-Of a Date

get_index_membership_asof
Read-onlyIdempotent

Was a stock a constituent of an index on a specific historical date? Returns a FOUR-STATE answer, never a bare yes/no: present (proven in range), uncertain (inside an unobserved bracket around a join/leave — plausible but NOT proven), absent (proven not a member, within coverage), or out_of_coverage (outside the observed window — we cannot answer). USE THIS for any 'was X in the Nifty 50/500 on ' question, and for point-in-time universe construction or survivorship-bias-aware backtests. Do NOT infer historical membership from today's constituent list — that is exactly the survivorship bias this tool exists to avoid. REPORT UNCERTAINTY HONESTLY: treat uncertain and out_of_coverage as NOT tradeable signal and say so; never silently collapse either into absent. The response states its own meta.coverage window plus meta.freshness.lag_days — trust answers only up to coverage.answerable_through.

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

Input Schema

NameRequiredDescriptionDefault
dateNoAs-of date, YYYY-MM-DD. Default: the latest covered date.
indexNoREQUIRED. Index name, e.g. "Nifty 50", "Nifty 500", "Nifty Midcap 150".
symbolNoREQUIRED. The stock symbol, e.g. "TRENT".
tickerNoAlias for `symbol`.
identifierNoAlias for `symbol`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / date / description
      Previous value: -"As-of date, YYYY-MM-DD. Defaults to today (IST) when omitted."New value: +"As-of date, YYYY-MM-DD. Default: the latest covered date."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial value on top: the four-state answer contract, the meaning of each state, the requirement to treat uncertain/out_of_coverage as non-tradeable, and the presence of meta.coverage and meta.freshness.lag_days. This is exactly the behavioral context an agent needs and cannot get from the annotations.

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?

Front-loaded with the core question and the return contract, then usage guidance, then reporting guidance — a logical order with no filler sentences. The all-caps emphasis on USE THIS, DO NOT, and REPORT UNCERTAINTY HONESTLY is slightly shouty but earns its place by marking the two most common failure modes.

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 carries the burden of explaining return values and does so fully via the four-state answer plus the meta.coverage/meta.freshness fields. Combined with coverage-window guidance ('trust answers only up to coverage.answerable_through'), an agent can call this correctly and interpret the result honestly.

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 five parameters including the symbol/ticker/identifier aliases are already documented in the schema. The description adds no param-level detail (no date semantics, no alias-resolution guidance, no note on what happens if both symbol and ticker are supplied), so the baseline 3 applies.

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?

Opens with a precise question-form statement of verb and resource: historical index constituent membership as of a date. It is immediately distinguishable from sibling tools like get_index_history or get_index_performance because it explicitly frames itself as point-in-time membership, not history or performance.

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 explicit use cases ('was X in the Nifty 50/500 on <date>', point-in-time universe construction, survivorship-bias-aware backtests) and a clear anti-pattern ('Do NOT infer historical membership from today's constituent list'). It stops short of naming a specific sibling as the alternative, so routing to get_index_history versus this tool is left implicit.

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.