Skip to main content
Glama
rezmeplxrf

InsightSentry MCP

by rezmeplxrf

get_options_expiration

Retrieve option chains by expiration date with Greeks, IV, and strike prices. Filter by date ranges or exact dates to analyze call and put contracts for underlying symbols.

Instructions

Option chain by expiration. Retrieve option chain data by expiration. Provide either expiration (exact date) or from/to (date range). Use the /v3/symbols/quotes endpoint with the returned option codes to get last price and volume (up to 10 codes per request). → Returns {underlying_code: string, last_update: number, last_price?: number, data: [{code?: string, type: string, strike_price: number, expiration: number, ask_price: number, bid_price: number, delta: number, gamma: number, theta: number, vega: number, rho: number, implied_volatility: number, theoretical_price: number, bid_iv: number, ask_iv: number}]}. Provide expiration for exact date, or from/to for a date range. last_price is included when range is provided. To get last price and volume of option contracts, use get_quotes with the option codes (e.g., codes=OPRA:AAPL270617C230.0,OPRA:AAPL270617C260.0, up to 10). For historical option price data use get_symbol_series.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes(Required) Symbol code in Exchange:Symbol format (e.g., NASDAQ:AAPL). Use search_symbols to find the correct code.
expirationNo(Required if from/to not provided) Exact expiration date. Ignored when from or to is provided.
fromNo(Optional) Minimum expiration date. When provided, expiration parameter is ignored.
toNo(Optional) Maximum expiration date. When provided, expiration parameter is ignored.
rangeNo(Optional) Strike price range as a percentage of the current underlying price. For example, range=10 returns only options with strikes within ±10% of the current price.
typeNo(Optional) Filter by option type.
sortByNo(Optional) Sort by specified field
sortNo(Optional) Sort order
filterNo(Optional) JSONata expression to filter/transform the API response server-side before it reaches you. Use this to extract only the fields or rows you need, reducing token usage. See https://jsonata.org for syntax.
Behavior4/5

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

With no annotations provided, the description carries the full burden and successfully discloses key behavioral traits: it includes the complete return schema inline (compensating for no output_schema), explains that last_price is only returned when using date ranges, and clarifies that this tool returns greeks/theoretical prices but not real-time market data (which requires a separate get_quotes call).

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?

The description contains redundant sentences (repeating the expiration/from/to logic twice) and starts with a tautological phrase ('Option chain by expiration' followed by 'Retrieve option chain data by expiration'). However, the inline return schema, while verbose, is useful given the lack of output_schema, and the overall length is appropriate for the complexity.

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

Completeness4/5

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

For a complex financial tool with 9 parameters and no annotations, the description is nearly complete. It includes the return structure, documents the two-step workflow (chain retrieval then quote retrieval), and references relevant siblings. Minor gaps include missing rate limit information and no mention of the filter parameter's JSONata syntax examples, but these are acceptable omissions given the schema coverage.

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?

With 100% schema description coverage, the baseline is 3. The description largely restates the mutual exclusivity logic already present in the schema (expiration vs from/to). It adds minimal semantic value beyond the schema, though the example option code format (OPRA:AAPL270617C230.0) in the context of get_quotes usage indirectly helps clarify the code parameter format.

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 clearly states the tool retrieves option chain data by expiration, distinguishing it from siblings like get_quotes (for last price/volume) and get_symbol_series (for historical data). However, it doesn't explicitly differentiate from similar sibling get_options_strike, and the opening 'Option chain by expiration' is somewhat telegraphic.

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

Usage Guidelines5/5

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

Provides explicit guidance on when to use alternatives, specifically directing users to get_quotes for last price/volume and get_symbol_series for historical data. It clearly explains the mutual exclusivity logic between the expiration parameter and from/to date range parameters, and notes the 10-code limit for subsequent quote requests.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rezmeplxrf/insight_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server