Skip to main content
Glama

Chain snapshot

option_chain_snapshot

Retrieve an option chain for one underlying and expiry from a permitted provider or supplied CSV/JSON, solve implied volatility where possible, and save a schema-validated artifact for analysis.

Instructions

Retrieve an option chain for one underlying and expiry from a permitted provider or user-supplied data. An attachment can be sent as source_data, source_text, or a local source_path. Solve implied volatility where possible and write a schema-validated chain artifact for the dashboard and later tools. Set rights_confirmed only after the user states that the data can be sent for private analysis. Do not ask for an attachment again when it is present. Never invent a missing market value. Before quoting any number from this result, state the degraded flag and its reason when the result carries one, and cite the artifact path it names.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "option_chain_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoRisk-free rate per 1.00. Omit to fetch the 13-week T-bill
expiryNoYYYY-MM-DD. Omit for nearest
symbolYesUnderlying ticker, e.g. SPY
data_sourceNoProvider or source named by the user
source_dataNoInline JSON object or contract-row list
source_pathNoPath to a CSV or JSON snapshot
source_textNoInline CSV or JSON text
source_formatNo
dividend_yieldNoContinuous yield per 1.00
rights_confirmedNoUser states that this data can be sent for private analysis

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 say readOnlyHint=false, openWorldHint=true, idempotent=false; the description corroborates the write by stating it writes a schema-validated chain artifact and returns an artifact path, and adds real context beyond the annotations: implied-volatility solving, a consent gate on rights_confirmed, a degraded flag with reason, and a prohibition on fabricating missing values. It still omits overwrite/repeat-call behavior and what the artifact contains, keeping it from a 5.

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?

Purpose and source channels are front-loaded in the first two sentences, followed by operating constraints. Every sentence carries an actionable rule or scope fact; nothing is redundant, though the block is dense.

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 ten parameters, no output schema, and a write side effect, the description does the necessary work: it explains the attachment channels, the consent precondition, the artifact output and its path, and the degraded-flag reporting duty. Missing only return-shape detail such as where the artifact lands or how repeated calls with the same expiry behave.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 90%, so the baseline is 3; the description adds genuine meaning by presenting source_data, source_text, and source_path as interchangeable attachment channels and by explaining that rights_confirmed is a user-consent assertion rather than a technical flag. It adds little on rate, dividend_yield, or expiry defaults beyond what the schema already documents.

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 first sentence names a specific verb (retrieve), resource (option chain), and scope (one underlying and expiry, from a provider or user-supplied data), and later states the side effect of writing a schema-validated chain artifact for later tools. It does not explicitly distinguish itself from siblings such as option_greeks_ladder or option_lean, so an agent must infer that this is the ingestion/snapshot step.

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?

The description gives strong conditional rules — set rights_confirmed only after the user consents, do not re-ask for an attachment already present, never invent a missing market value, disclose the degraded flag and cite the artifact path when quoting numbers. These govern how to call and how to report, but there is no explicit when-to-use/when-not guidance relative to alternatives like option_expiries or option_snapshot_schema.

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