Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

by everdeep

get_options_chain

Retrieve a ticker's full options chain, including calls and puts, for a specified expiration date or the nearest date when none is provided.

Instructions

Get full options chain (both calls and puts) for a specific expiration date. If expiration_date is not provided, uses the nearest date.

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": {
      "ticker": "<ticker>"
    },
    "name": "get_options_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYes
expiration_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose one important trait: the fallback to the nearest expiration when the parameter is omitted. It says nothing about expected date format, behavior on an invalid or unavailable expiration, chain size, or failure modes, so the disclosure is useful but thin for an unannotated tool.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core capability and followed immediately by the one non-obvious behavioral rule. Nothing is redundant and nothing is buried.

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?

An output schema exists, so return values need not be described, and the description covers the essential call pattern for a two-parameter tool. The remaining omission is the accepted format for expiration_date, which matters because the schema provides no description for it.

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 0%, so the description must compensate, and it does partially: it explains that expiration_date selects a specific date and quietly defaults to the nearest one, which adds meaning beyond the schema's bare "default: null". Ticker is self-evident and requires no explanation, but no accepted date syntax is given, leaving a real gap.

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?

"Get full options chain (both calls and puts) for a specific expiration date" states a specific verb, resource, and scope, and the parenthetical makes clear this is not the same as get_calls or get_puts. It does not explicitly name those siblings, but the combined-calls-and-puts phrasing is enough to distinguish it from them.

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?

The description gives a clear usage condition for the optional parameter ("If expiration_date is not provided, uses the nearest date"), which tells an agent it can call the tool with just a ticker. It offers no routing guidance toward get_options_dates for discovering valid expirations or toward the single-side siblings, so when-to-use versus alternatives is only implied.

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