Skip to main content
Glama
bartest5

Alpaca MCP Server

by bartest5

get_option_contracts

Fetch option contracts for given underlying symbols, filtering by type, expiration, strike price, and status.

Instructions

Retrieves option contracts for underlying symbol(s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoThe type of the option contract.
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.
styleNoThe style of the option contract.
statusNoFilter contracts by status (active/inactive). By default only active contracts are returned.
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.
root_symbolNoFilter contracts by the root symbol.
expiration_dateNoFilter contracts by the exact expiration date (format: YYYY-MM-DD).
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.
show_deliverablesNoInclude deliverables array in the response.
underlying_symbolsNoFilter contracts by one or more underlying symbols.
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.

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, the description carries the full burden of behavioral disclosure. It only implies a read-only operation via 'Retrieves' but omits important behaviors like pagination, default filters (e.g., active contracts only), or any side effects. This is insufficient for a tool with such a broad filter set.

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 a single, direct sentence with no extraneous content, making it concise and front-loaded. However, its brevity leaves out valuable context, so it loses a point for being too sparse relative to the tool's complexity.

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?

Despite a rich schema and output schema, the description is minimal and does not address the tool's complexity, such as whether it supports pagination, how it relates to get_option_contract, or what kind of data is returned. This makes the description incomplete for an agent to confidently select and invoke the tool.

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 schema has 100% parameter description coverage, so the schema itself documents all parameters. The description adds no additional meaning beyond the resource type, earning the baseline score of 3 as per the rubric.

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 tool retrieves option contracts for underlying symbols, using a specific verb and resource. However, it does not distinguish itself from sibling tools like get_option_contract (singular) or get_option_chain, which could be confused for similar functionality.

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. The description merely states what it does, without mentioning suitable scenarios or exclusions, leaving the agent to infer usage from the tool name and parameters 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/bartest5/alpacahq_alpaca-mcp-server'

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