Skip to main content
Glama

get_open_interest

Retrieves option open interest by strike for an underlying and expiry on a given date to analyze market positioning.

Instructions

Option OI by strike for an underlying (GET /v2/market/oi).

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": {
      "instrument_key": "<instrument_key>",
      "expiry": "<expiry>",
      "date": "<date>"
    },
    "name": "get_open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
expiryYesYYYY-MM-DD or current_week|next_week|far_week|current_month|next_month|far_month
instrument_keyYese.g. NSE_INDEX|Nifty 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 discloses almost nothing: the "GET" method implies a read-only call, but there is no statement about return shape, pagination, rate limits, or whether expired vs. live contracts are covered. The parenthetical endpoint path is the only behavioral clue.

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 the key noun (Option OI) and dimension (by strike) placed early; nothing is padded. The trailing endpoint path is of marginal value to an agent but does not obscure the core statement.

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?

There is no output schema, so the description ideally would sketch the return (e.g., per-strike call/put OI, units, whether it includes both legs). "By strike" hints at the shape but leaves the response contents, and any expiry-resolution behavior, unexplained for a 3-required-parameter tool.

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 100%, and the schema already documents all three required parameters, including the date format, the relative expiry keywords (current_week, next_month, etc.), and an instrument_key example. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

"Option OI by strike for an underlying" names a specific resource (open interest), a specific dimensionality (by strike), and a scope (single underlying), which is clearer than a bare resource name. It does not, however, differentiate itself from plausible siblings such as get_change_in_oi, get_option_chain, or get_max_pain, all of which touch the same option surface.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance, no prerequisites, and no pointer to an alternative. An agent cannot tell from this text whether to reach for this tool or get_option_chain when it needs option-level data.

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