Skip to main content
Glama

Options Profit Calculator

Calculate position with P/L graph

calculate_position
Read-only

Everything probability_of_profit returns, plus the profit/loss graph data the optionsprofitcalculator.com calculator shows: P/L in dollars across a grid of stock prices and dates up to the earliest expiry. Use it to chart a position or to see how profit changes over time. This tool has no market data: give the current stock price and the price of every option leg (from the user or another source). Implied volatility is worked out from each price. calculatorUrl opens the same position and graph in the calculator on optionsprofitcalculator.com.

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": {
      "underlyingPrice": "<underlyingPrice>",
      "legs": "<legs>"
    },
    "name": "calculate_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
iv30No30-day implied volatility, whole percent, used for the probability. Omit to use the average implied volatility of the option legs.
legsYes
symbolNoTicker symbol, e.g. AAPL
ivChangeNoShift all implied volatilities by this percent, e.g. -10
priceMaxNoHighest stock price on the graph (default: automatic)
priceMinNoLowest stock price on the graph (default: automatic)
underlyingPriceYesCurrent stock price

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / iv30 / description
      Previous value: -"30-day implied volatility, whole percent. Omit to use the latest."New value: +"30-day implied volatility, whole percent, used for the probability. Omit to use the average implied volatility of the option legs."
    • changedInput schema / properties / legs / items / properties / price / description
      Previous value: -"Price per share paid or received. Omit to use the current mid price."New value: +"Price per share paid or received. Required for call and put legs. For a stock leg, omit to use underlyingPrice."
    • changedInput schema / properties / underlyingPrice / description
      Previous value: -"Current stock price. Omit to use the latest quote."New value: +"Current stock price"
    • changedInput schema / required
      Previous value: -[
      -  "legs"
      -]New value: +[
      +  "underlyingPrice",
      +  "legs"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses key behavioral facts an agent could not otherwise know: the tool has no market data and requires the caller to supply current stock and leg prices, implied volatility is derived from those prices, the grid extends to the earliest expiry, and calculatorUrl links to the external calculator. That is substantive context, especially valuable since there is no output schema.

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 superset claim and the graph output are front-loaded, and each sentence carries distinct information (output shape, usage, data requirements, IV derivation, external URL). Slightly dense but no filler sentences.

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 seven parameters, a nested legs array, and no output schema, the description does a good job explaining the returned grid and calculatorUrl. Minor gaps remain around graph-bound behavior and the ivChange/iv30 interplay, but nothing essential to correct invocation is missing.

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 coverage is 86%, so the schema already documents the parameters in detail. The description adds only moderate meaning: that underlyingPrice and per-leg prices must come from the user or another source and that IV is computed from price. It says nothing about priceMin/priceMax graph bounds, ivChange, or iv30 beyond what the schema states.

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 names the specific output (P/L in dollars across a grid of stock prices and dates) and positions itself explicitly as a superset of the sibling: 'Everything probability_of_profit returns, plus the profit/loss graph data.' An agent can distinguish it from probability_of_profit without opening either schema.

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 to chart a position or to see how profit changes over time' gives a clear usage condition, and the superset framing against probability_of_profit implies the alternative when only probability is needed. It lacks an explicit 'do not use when' statement or guidance on when the cheaper/simpler sibling should be preferred.

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