Skip to main content
Glama
GlynnCarson

tradingview-mcp

by GlynnCarson

stock_options_chain

Read-only

Retrieve the full options chain (calls and puts) for a US stock symbol by expiry, including bid, ask, volume, open interest, implied volatility, and in-the-money status. If no expiry is given, returns the nearest expiry.

Instructions

Full options chain (calls + puts) for a US stock symbol and one expiry.

Use this when the user asks "what's the options chain for X?", "show me AAPL puts expiring next Friday", or wants to inspect bid/ask/IV/volume on a specific strike. If no expiry is provided, returns the nearest expiry so Claude can quote it back and ask "want a different one?".

Args: symbol: US stock symbol — AAPL, NVDA, TSLA, SPY, etc. expiry: Optional ISO date (YYYY-MM-DD). Must match one of the available_expiries Yahoo returns; otherwise returns an error with the list of valid dates.

Returns: - underlying_price, underlying_change_pct - requested_expiry, available_expiries (list of YYYY-MM-DD) - call_count, put_count - calls: list of {strike, last_price, bid, ask, volume, open_interest, implied_volatility, in_the_money, expiration} - puts: same shape as calls

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expiryNo
symbolYes
Behavior4/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds valuable context: error handling for invalid expiry, default return of nearest expiry, and listing of available_expiries. This goes beyond annotations, though rate limits or authentication are not mentioned.

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?

Concise, well-structured description with a brief intro, usage examples, and clear Args/Returns sections. At about 10 lines, every sentence adds value and is front-loaded with purpose and usage.

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 simple 2-parameter tool with no output schema, the description covers purpose, usage, parameters, and return structure (listing fields like underlying_price, call_count, etc.). It does not mention edge cases like empty chains or missing data, but the information provided is sufficient for an AI agent to invoke the tool correctly.

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 has 0% description coverage, so the description fully compensates. It explains symbol as a US stock symbol with examples, and expiry as an optional ISO date that must match available_expiries, including the error behavior. The default behavior when omitted is also described.

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

Purpose5/5

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

The description clearly states it returns the full options chain for a US stock symbol and one expiry, with specific examples like 'show me AAPL puts expiring next Friday'. It differentiates from siblings such as stock_options_unusual_activity by focusing on the standard chain rather than unusual activity.

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

Usage Guidelines4/5

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

Explicit usage examples are given, such as when a user asks for an options chain or wants to inspect bid/ask/IV/volume. The description also explains behavior when no expiry is provided (returns nearest expiry). It does not explicitly mention when not to use or list alternative tools, but the context is clear.

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/GlynnCarson/tradingview-mcp'

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