Skip to main content
Glama

WHAT IF on an options trade

what_if
Read-onlyIdempotent

What a trade is worth if the stock moves, time passes or implied volatility changes: profit or loss on a chosen date at a chosen stock price, the same at expiration, and the change for one more day, one more volatility point and a one dollar move. Use it for questions like what happens to my condor if the stock drops ten percent next week.

Input Schema

NameRequiredDescriptionDefault
daysYesDays to expiration.
legsNoThe legs of the trade, up to eight. Each has a side (buy or sell), a type (call, put or stock), a strike for options, a quantity, and optionally the price per share paid or received; a missing price is estimated from the implied volatility.
spotYesStock price in dollars.
iv_pctYesImplied volatility, percent per year (30 means 30 percent).
rate_pctNoInterest rate the model uses, percent per year. Default 4.
strategyNoA standard structure built from the stock price: long_call, long_put, covered_call, cash_secured_put, bull_call_spread, bear_put_spread, bull_put_spread, bear_call_spread, iron_condor, long_straddle, long_strangle. Omit when passing legs.
stock_priceYesThe stock price in the scenario.
days_from_nowNoDays into the future for the scenario. 0 means today.
iv_change_pointsNoChange in implied volatility in points, applied to every leg. Negative for a drop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the bar is lower; the description adds genuine value by enumerating what comes back: P/L on a chosen date at a chosen price, P/L at expiration, and the change for one more day, one vol point and a one-dollar move. That effectively substitutes for the missing output schema. It does not cover modeling assumptions or accuracy caveats.

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?

Two sentences, front-loaded with the value proposition followed by per-dimension detail and a concrete example. No filler or repetition of the title.

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 reasonably well, and the 9-parameter schema (including nested legs and the strategy alternative) is fully self-documenting. The only gap is that it never explains the legs-vs-strategy mutual exclusivity in prose, though the schema states it.

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%, including per-leg fields (qty, days, strike, iv_pct, premium) and the strategy enum, so the baseline is 3. The description only implies the stock_price/days_from_now/iv_change_points scenarios and adds no format or interaction detail beyond the schema.

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?

States a specific verb+resource: it values an options trade under three scenario dimensions (stock move, time decay, IV change). This is clearly distinguishable in kind from sibling tools like expected_move or probability_of_profit, but the description never names or contrasts those siblings, leaving the differentiation implicit.

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?

"Use it for questions like what happens to my condor if the stock drops ten percent next week" gives a concrete triggering question, so an agent knows the scenario-analysis use case. It stops short of any exclusion or alternative routing (e.g. when to prefer profit_calculator or probability_of_profit instead).

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.

Resources