Skip to main content
Glama

Structure Greeks

post_structure_greeks
Read-only

Aggregate Black-Scholes position greeks (delta, gamma, theta, vega, rho, vanna, charm) for a multi-leg options structure. Pure math — pass legs as JSON. Different body than Structure P&L: needs a top-level spot and per-leg expiry+impliedVol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
legsYesJSON. Top-level `spot`(>0) required; each leg needs action(buy|sell), type(call|put), strike, expiry(YYYY-MM-DD), impliedVol(decimal), quantity. e.g. {"legs":[{"action":"buy","type":"call","strike":120,"expiry":"2026-07-17","impliedVol":0.28,"quantity":1}],"spot":122.5}. See /v1/structures/greeks in docs/api.md.
apiKeyNoFlashAlpha API key. Omit when calling via /mcp-oauth (OAuth flow); required on /mcp.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description adds 'Pure math,' conveying a no-side-effect calculation behavior beyond the annotation. It also flags the distinction from Structure P&L, which helps set expectations about input requirements. It doesn't cover error cases or output format, but with the annotation covering safety, the added context is valuable.

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 two sentences, each earning its place: the first states the function and scope, the second highlights the operational difference from Structure P&L. No filler or repetition of schema details; the key facts are front-loaded.

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 moderate-complexity calculation tool with readOnlyHint, rich schema example, and sibling P&L tool, the description provides enough to select and invoke correctly. It explains the JSON body pattern, contrasts with P&L, and the 'Aggregate' verb implies the return value. It lacks explicit return-format info, but no output schema exists and the schema example partially covers inputs; the description is sufficiently complete.

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 100% and the input schema already provides a detailed example with spot and per-leg constraints. The description's mention of 'top-level `spot`' and 'per-leg `expiry`+`impliedVol`' restates the schema without adding new meaning. Baseline 3 is appropriate because the schema carries the semantic load.

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 opens with a specific verb and resource: 'Aggregate Black-Scholes position greeks ... for a multi-leg options structure,' clearly enumerating the greeks included (delta, gamma, theta, vega, rho, vanna, charm). It distinguishes itself from the sibling tool by stating 'Different body than Structure P&L,' differentiating it from post_structure_pnl.

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?

The description gives explicit usage context: 'Pure math — pass legs as JSON.' It names the key alternative (Structure P&L) and clarifies the body difference: 'needs a top-level `spot` and per-leg `expiry`+`impliedVol`.' It does not explicitly mention when NOT to use it beyond the P&L contrast, so it falls slightly short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation2/5

Many tools have overlapping scopes: get_stock_summary, get_volatility, get_vrp, and get_exposure_summary all return comprehensive analytics with shared metrics, making it hard to pick the right one. The flow family (get_flow_live, get_flow_summary, get_flow_scan, get_flow_signals, etc.) has significant redundancy — get_flow_live bundles data also available via separate tools.

Naming Consistency4/5

Tool names mostly follow a consistent get_<noun> pattern, with clear subgroups like get_historical_* and get_*_exposure. Minor deviations exist: post_screener, post_structure_pnl, calculate_greeks, and solve_iv break the get_ convention, but they are still predictable and readable.

Tool Count1/5

With 73 tools, this is far beyond the 3–15 tool sweet spot and even the 50+ extreme mismatch threshold. While the domain is broad, the enormous surface is bloated by near-duplicate historical replay variants (18 get_historical_* tools) and multiple overlapping summary endpoints, making it unwieldy for an agent.

Completeness5/5

The tool set provides thorough coverage of options analytics: quotes, chains, greeks, volatility surface, VRP, exposure, flow, historical replay, screening, and strategy analysis. There are no obvious dead ends — core workflows like calculating greeks, getting exposure, and screening the universe are all supported.

Resources