Skip to main content
Glama
lkcair

yfinance-ai MCP server

by lkcair

get_options_chain

Read-onlyIdempotent

Fetch call and put options data for a stock ticker, optionally by expiration date, returning the top contracts by volume.

Instructions

Get options chain data (calls and puts).

Args: ticker: Stock ticker symbol expiration: Specific expiration date (YYYY-MM-DD) or empty for nearest

Returns: Options chain with top calls and puts by volume

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes
expirationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, non-destructive, and open-world behavior. The description adds useful behavioral context by saying the result contains top calls and puts by volume, though with an output schema present this return summary is somewhat redundant.

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?

The description is short, front-loaded with the core purpose, and organized into Args and Returns sections. Every sentence adds useful information without unnecessary repetition.

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

Completeness5/5

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

For a simple two-parameter read-only tool with rich annotations and an output schema, the description supplies enough context to invoke it correctly. It covers purpose, both parameter semantics, and the nature of the returned data.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 carry parameter meaning. It documents both parameters: ticker as a stock symbol and expiration as YYYY-MM-DD or empty for nearest, which fully compensates for the schema 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?

The description states a specific verb and resource: getting an options chain with calls and puts. It is clear what the tool does, but it does not explicitly differentiate itself from the related sibling get_options_expirations.

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?

Usage is implied by the purpose, and the expiration parameter explains that an empty value means nearest expiration. However, the description does not state when to use this tool versus get_options_expirations or other options-related siblings.

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