Skip to main content
Glama

get_change_in_oi

Retrieves the change in open interest for an option contract over a specified number of days using instrument key, expiry, date, and interval.

Instructions

Change in option OI over N days (GET /v2/market/change-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>",
      "interval": "<interval>"
    },
    "name": "get_change_in_oi"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
expiryYesYYYY-MM-DD or current_week|next_week|far_week|current_month|next_month|far_month
intervalYesdays over which the OI difference is computed
instrument_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/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 behavioral burden, and it adds little: the '(GET ...)' snippet implies a read-only request but nothing is said about rate limits, permissions, error behavior, or whether expired instruments are supported. It also does not describe what the response contains, which matters because there is no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with zero filler and the metric front-loaded, which is good. The brevity is under-specification rather than efficiency, however, since the parenthetical endpoint adds almost no value for an agent choosing a tool.

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?

This is a four-required-parameter market-data tool with no annotations and no output schema, so the description should at minimum convey what the return looks like (per-strike deltas, sign convention, units) and any expiry constraints. Neither is present, leaving meaningful gaps for correct invocation.

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 75%: the schema itself explains the date and expiry formats and defines interval as the number of days over which the OI difference is computed. The description's 'over N days' only restates the interval parameter and says nothing about instrument_key, the one parameter with no schema description.

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 a specific metric and resource — change in option open interest — plus the time dimension (N days) and the backing endpoint path, so an agent can tell it apart from a plain open-interest snapshot. It stops short of naming or contrasting the sibling tool (get_open_interest), which would have made it a 5.

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?

There is no when-to-use or when-not-to-use guidance, no mention of an alternative such as get_open_interest, and no prerequisites (e.g., that a valid instrument key and a non-expired expiry are required). The agent must infer the use case entirely from the metric name.

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