Skip to main content
Glama

get_max_pain

Fetches max pain levels with intraday insights for an instrument and expiry, using a date and bucket interval to control data points.

Instructions

Max pain with intraday insights (GET /v2/market/max-pain). bucket_interval is minutes between points (e.g. 60).

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>",
      "bucket_interval": "<bucket_interval>"
    },
    "name": "get_max_pain"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
expiryYesYYYY-MM-DD or current_week|next_week|far_week|current_month|next_month|far_month
instrument_keyYes
bucket_intervalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It implies a read via the GET endpoint and hints at intraday granularity, but says nothing about authentication, rate limits, whether the response is a single point or a bucketed series, or how missing/illiquid data is handled.

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?

Two short sentences, front-loaded with the resource and endpoint, with no filler. Slightly clipped to the point of under-specification, but structurally clean.

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?

A four-required-parameter market-data tool with no annotations and no output schema needs more: the shape of the return (per-bucket series vs single value), the meaning of instrument_key, and how expiry presets interact with date are all left unstated. The description is not sufficient on its own.

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%: date and expiry are documented in the schema, while instrument_key and bucket_interval are not. The description usefully compensates for bucket_interval by defining it as minutes between points with an example (60), but instrument_key remains entirely unexplained in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (max pain) and includes the endpoint, plus the qualifier 'with intraday insights'. However, it never states the verb or what is actually returned (a max-pain strike, a time series of buckets, etc.), and it draws no distinction from siblings such as get_option_chain or get_open_interest, which an agent could easily confuse with this.

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 guidance at all: no prerequisites, no mention of which expiry/date combinations are valid, and no steering toward alternatives for related option analytics. The agent must infer usage entirely from the name and the endpoint path.

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