Skip to main content
Glama
alpacahq

alpaca-mcp-server

Official
by alpacahq

get_option_contracts

Retrieve option contracts for specified underlying symbols with filtering by expiration date, strike price, type, and status to analyze trading opportunities.

Instructions

Retrieves option contracts for underlying symbol(s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
underlying_symbolsNoFilter contracts by one or more underlying symbols.
show_deliverablesNoInclude deliverables array in the response.
statusNoFilter contracts by status (active/inactive). By default only active contracts are returned.
expiration_dateNoFilter contracts by the exact expiration date (format: YYYY-MM-DD).
expiration_date_gteNoFilter contracts with expiration date greater than or equal to the specified date.
expiration_date_lteNoFilter contracts with expiration date less than or equal to the specified date. By default this is set to the next weekend.
root_symbolNoFilter contracts by the root symbol.
typeNoFilter contracts by the type (call/put).
styleNoFilter contracts by the style (american/european).
strike_price_gteNoFilter contracts with strike price greater than or equal to the specified value.
strike_price_lteNoFilter contracts with strike price less than or equal to the specified value.
page_tokenNoUsed for pagination, this token retrieves the next page of results. It is obtained from the response of the preceding page when additional pages are available.
limitNoThe number of contracts to limit per page (default=100, max=10000).
ppindNoThe ppind(Penny Program Indicator) field indicates whether an option contract is eligible for penny price increments, with `true` meaning it is part of the Penny Program and `false` meaning it is not.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a retrieval operation but doesn't mention whether it's paginated (though page_token parameter hints at this), what authentication is required, rate limits, error conditions, or what the output contains. For a 14-parameter tool with complex filtering, this is inadequate behavioral context.

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 a single, efficient sentence that gets straight to the point with zero wasted words. It's appropriately sized for a retrieval tool and front-loads the core functionality without unnecessary elaboration.

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

Completeness3/5

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

Given the tool's complexity (14 parameters, filtering capabilities) and the presence of an output schema, the description is minimally adequate. The output schema reduces the need to describe return values, but the description should still provide more context about the tool's behavior, typical use cases, and relationship to sibling tools given the rich parameter set.

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 mentions 'underlying symbol(s)' which aligns with one parameter, but with 100% schema description coverage, the schema already documents all 14 parameters thoroughly. The description adds minimal value beyond what's in the schema - it doesn't explain parameter interactions, default behaviors, or provide usage examples. Baseline 3 is appropriate when schema does the heavy lifting.

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 action ('Retrieves') and resource ('option contracts') with scope ('for underlying symbol(s)'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like get_option_chain or get_option_contract, but the verb+resource combination is specific enough for basic understanding.

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?

The description provides no guidance on when to use this tool versus alternatives like get_option_chain or get_option_contract. There's no mention of prerequisites, typical use cases, or comparison with sibling tools that might offer similar functionality. The agent must infer usage from the tool name alone.

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/alpacahq/alpaca-mcp-server'

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