Skip to main content
Glama
jasonwu001t

marketlens-mcp

by jasonwu001t

Option contracts

reference_option_contracts
Read-onlyIdempotent

Filter and list option contracts by underlying, expiration, type, style, strike range, and root; large results are stored and returned as a result_id for later querying.

Instructions

Listed option contracts (OCC symbol, underlying, expiration, strike in USD, type, style, multiplier, open interest, last close) filtered by underlyings, expiration (exact or from/to), type, style, strike range and root; deliverables on request. Large results are stored, not shown: you get a result_id to query with results_query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNo
statusNoAlpaca's default is active only.
expirationNoExact expiration date.
page_tokenNoContinue a truncated fetch: the page_token from the previous response's pagination.
strike_maxNoHighest strike (USD), inclusive.
strike_minNoLowest strike (USD), inclusive.
option_typeNo
root_symbolNoOCC root, for adjusted contracts.
underlyingsNoUnderlying stock tickers.
expiration_toNoLatest expiration date, inclusive.
expiration_fromNoEarliest expiration date, inclusive.
show_deliverablesNoInclude each contract's deliverables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: results may be truncated and persisted rather than returned inline, yielding a result_id. That is exactly the kind of context annotations cannot express.

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?

Two sentences, front-loaded with the resource and its field list, then the critical storage/result_id behavior. The parenthetical field inventory is long but each item is informative. No filler or tautology.

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?

With no output schema, the description carries the return-value burden and does so by listing the returned contract fields, plus the result_id/truncation workflow. Pagination via page_token is left to the schema, which documents it adequately, so the definition is close to self-sufficient.

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?

Schema description coverage is 83%, so the schema already documents most filters, and the description largely restates the same filter set (underlyings, expiration exact or from/to, type, style, strike range, root). It adds minor clarification (strike in USD, deliverables on request) but nothing about default semantics such as the active-only status default.

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 opens with a specific verb+resource ('Listed option contracts') and enumerates the returned fields (OCC symbol, underlying, expiration, strike, type, style, multiplier, open interest, last close), so the agent knows exactly what data comes back. It does not, however, explicitly distinguish itself from the singular sibling reference_option_contract or from options_chain, which an agent scanning the tool list would need.

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?

It names a concrete downstream alternative and the condition that selects it: large results are stored, and the returned result_id should be queried with results_query. It also states 'deliverables on request,' implying when to set show_deliverables. It stops short of saying when to prefer this over options_chain or reference_option_contract.

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