Skip to main content
Glama
indian-option-mcp

indian-option-mcp

IV rank and percentile

iv_rank
Read-only

Measure where an Indian F&O underlying's current at-the-money implied volatility sits within its historical range using rank and percentile, helping assess whether options are cheap or expensive.

Instructions

IV rank and IV percentile for an Indian F&O underlying: where today's at-the-money implied volatility sits against its own history (default one year). Rank = position between the period low and high (0-100); percentile = share of sessions with lower IV. History comes from official NSE F&O bhavcopies, measured the same way every day (nearest expiry at least 7 days out, ATM call/put average). For NIFTY it also ranks India VIX. The first call for a long lookback downloads many files and may return partial coverage; calling again continues.

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": {
      "symbol": "<symbol>"
    },
    "name": "iv_rank"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesUnderlying, e.g. NIFTY, BANKNIFTY, RELIANCE
lookback_daysNoTrading sessions of history (default 252 ≈ 1 year)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses data provenance (official NSE F&O bhavcopies), a fixed measurement convention (nearest expiry at least 7 days out, ATM call/put average), and a real operational caveat: a long lookback downloads many files and may return partial coverage, with a repeat call continuing the fetch. That partial-result behavior is exactly the kind of context annotations cannot convey and is consistent with idempotentHint=false. It stops short of stating expected latency or response shape, so 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?

Front-loaded with the two metrics and their definitions, then methodology, then the operational caveat — a sensible order. It is a single dense block and the parenthetical methodology clause is long, but every sentence carries information an agent needs.

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?

There is no output schema, so the description must convey return semantics, and it does (0-100 rank interpretation and percentile meaning). Combined with the partial-coverage caveat for long lookbacks, an agent has everything needed to call this correctly and interpret the result.

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 both symbol and lookback_days are already documented, and the description largely repeats the default ('one year' vs 252 sessions). Its only added meaning is the measurement convention used to build that history, which is useful but not parameter-level guidance such as how to choose a lookback relative to the question being asked.

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 names the resource (IV rank and IV percentile for an Indian F&O underlying) and precisely defines both outputs: rank as position between period low and high on a 0-100 scale, percentile as share of sessions with lower IV. That definitional detail distinguishes it cleanly from siblings like calculate_iv (a point-in-time IV) and historical_volatility (realized vol, not implied).

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?

It implicitly tells the agent this is the tool for judging whether current IV is rich or cheap versus its own history, and notes a NIFTY-specific behavior (also ranks India VIX). However, it never states when NOT to use it or names an alternative such as calculate_iv for a single-session IV reading, leaving routing to inference.

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