Skip to main content
Glama

get_expired_historical_candles

Fetch historical candle data for expired instrument keys by interval and date range, enabling analysis of past expired contracts.

Instructions

Historical candles for an expired instrument key (from the expired contract listings).

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": {
      "expired_instrument_key": "<expired_instrument_key>",
      "interval": "<interval>",
      "to_date": "<to_date>",
      "from_date": "<from_date>"
    },
    "name": "get_expired_historical_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_dateYesYYYY-MM-DD
intervalYes
from_dateYes
expired_instrument_keyYese.g. NSE_FO|73507|24-04-2025 (contains |)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it provides almost none. It does not state whether historical candle data is limited to a maximum date range, whether results are paginated or capped, how candles are ordered, or what happens when the expired key is invalid or the range has no data. For a data-retrieval tool with zero annotation coverage this is a significant gap, though the read-only nature of 'historical candles' is at least self-evident.

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 front-loaded sentence with no filler or redundancy. It is efficient, though the brevity borders on under-specification rather than tightness.

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

Completeness2/5

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

With no annotations and no output schema, the description is the only prose an agent gets for a tool with four required parameters. It omits date-range constraints, result size or pagination behavior, and return shape, so an agent cannot predict how large a request is safe or how to consume the response.

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 coverage is 50%: to_date carries a format hint, expired_instrument_key carries an example, and interval is enum-constrained, so the structured fields do most of the work. The description adds real value only for the hardest parameter by pointing at the expired contract listings as the source of the key; it says nothing about date-range limits, ordering of from_date versus to_date, or interval semantics beyond the enum.

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 the resource ('Historical candles') and the specific scope ('for an expired instrument key'), which cleanly separates it from the sibling get_historical_candles that presumably covers live instruments. It does not explicitly name that sibling, but the 'expired' qualifier makes the distinction inferable.

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?

The parenthetical '(from the expired contract listings)' implies a prerequisite workflow — the key must first be obtained from an expired-contracts listing tool such as get_expired_option_contracts or get_expired_future_contracts — which is genuinely useful. However, there is no explicit statement of when to use this versus get_historical_candles or get_intraday_candles, and no exclusions are given.

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