Skip to main content
Glama
fritzprix

yfin-mcp

by fritzprix

get_option_chain

Retrieve option chain data for a stock ticker, expiration date, and option type (calls or puts). Supports pagination and export.

Instructions

Fetch the option chain for a given ticker symbol, expiration date, and option type.

Args: ticker: str The ticker symbol of the stock to get option chain for, e.g. "AAPL" expiration_date: str The expiration date for the options chain (format: 'YYYY-MM-DD') option_type: str The type of option to fetch ('calls' or 'puts')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes
expiration_dateYes
option_typeYes
pageNo
export_pathNo
Behavior2/5

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

No annotations are provided, and the description only states the action without disclosing behavioral traits such as read-only nature, authentication needs, rate limits, or error behavior. This minimal transparency is insufficient for a data retrieval tool.

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?

The description is concise and well-structured with a clear docstring including an Args section. It avoids unnecessary details, though the repetition of parameter names in the list could be condensed.

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?

Given the absence of an output schema and annotations, the description should explain return data structure and pagination behavior (due to page parameter). It does not address these, leaving the agent without key context for interpreting results.

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?

The description adds meaning for the three required parameters (ticker, expiration_date, option_type) by providing examples and format, but it fails to document the optional parameters (page, export_path) which exist in the schema. Schema coverage is 0%, so the description partially compensates.

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 states 'Fetch the option chain for a given ticker symbol, expiration date, and option type,' which is a specific verb+resource. It clearly distinguishes from siblings like get_option_expiration_dates by mentioning the parameters, but does not explicitly differentiate usage.

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?

No guidance is provided on when to use this tool versus alternatives (e.g., get_option_expiration_dates). The description lacks context on prerequisites or when-not scenarios.

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/fritzprix/yahoo-finance-mcp'

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