Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Options Payoff

workflow.run_options_payoff
Read-only

Payoff, P&L, and breakeven price for a single-leg Deribit BTC/ETH option (long or short call/put) at a given scenario price at expiry. Deribit BTC/ETH options are coin-settled: premium, P&L, and the max profit/loss caps come back denominated in the base coin (BTC/ETH), not USD; a scenarioPnlUsd convenience field converts the coin P&L back to USD at the scenario price. Coin settlement means a long call's upside is capped (max profit = 1 − premium per unit, not unlimited) while a long put's upside is technically unbounded as price falls toward zero, the mirror image of a USD-settled option's payoff shape, not a bug. Edge cases: strike, premium, quantity and scenarioPrice above zero; a coin premium for a call must be below 1. Not covered: early exercise, margin, fees, Greeks, the probability of profit and the value before expiry; the result is the payoff at expiry at one scenario price. Use when user asks "what does my BTC call/put pay off at price X?" or "where's my breakeven on this option?". Returns: intrinsicPerUnitCoin, scenarioPnlCoin, scenarioPnlUsd, breakevenPrice, maxLossCoin/maxProfitCoin (null = unbounded), isProfitable. With exchange "binance" (USDT-settled, flat payoff, premiumUsdt instead of premiumCoin) it returns the USDT equivalents: intrinsicPerUnitUsdt, scenarioPnlUsdt, breakevenPrice (K + premium for a call, K - premium for a put), maxLossUsdt/maxProfitUsdt (null = unbounded: a long call's profit is unlimited, a long put's best case is K - premium); USDT is not converted to USD.

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": {
      "optionType": "<optionType>",
      "position": "<position>",
      "strike": "<strike>",
      "quantity": "<quantity>",
      "scenarioPrice": "<scenarioPrice>"
    },
    "name": "workflow.run_options_payoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
strikeYesStrike price in USD
currencyNoUnderlying. Default BTC. XAU and XAG (gold, silver) only with exchange binance.
exchangeNoVenue whose settlement rules apply. "deribit" (default): BTC/ETH, coin-settled, premium in the base coin. "binance": BTC/ETH/XAU/XAG, USDT-settled, flat payoff max(0, S-K) per unit, premium in USDT (use the *Usdt premium fields); the result carries exchange and settlement fields.
positionYesOption position: "long" (bought) or "short" (sold)
quantityYesNumber of contracts (Deribit BTC/ETH options have contract_size 1.0, so this is coin-denominated size)
optionTypeYesOption type: "call" or "put"
premiumCoinNoDeribit only. Premium paid/received per contract, in the base coin (matches Deribit's own quoted price, e.g. 0.02 BTC); must be < 1 for a call
premiumUsdtNoBinance only. Premium paid/received per unit, in USDT (e.g. 1500); must be < strike for a put
scenarioPriceYesUnderlying price in USD to evaluate the payoff at

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / currency / description
      Previous value: -"Underlying coin. Default BTC."New value: +"Underlying. Default BTC. XAU and XAG (gold, silver) only with exchange binance."
    • changedInput schema / properties / currency / enum
      Previous value: -[
      -  "BTC",
      -  "ETH"
      -]New value: +[
      +  "BTC",
      +  "ETH",
      +  "XAU",
      +  "XAG"
      +]
    • addedInput schema / properties / exchange
      Added value: +{
      +  "description": "Venue whose settlement rules apply. \"deribit\" (default): BTC/ETH, coin-settled, premium in the base coin. \"binance\": BTC/ETH/XAU/XAG, USDT-settled, flat payoff max(0, S-K) per unit, premium in USDT (use the *Usdt premium fields); the result carries exchange and settlement fields.",
      +  "enum": [
      +    "deribit",
      +    "binance"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / premiumCoin / description
      Previous value: -"Premium paid/received per contract, in the base coin (matches Deribit's own quoted price, e.g. 0.02 BTC); must be < 1 for a call"New value: +"Deribit only. Premium paid/received per contract, in the base coin (matches Deribit's own quoted price, e.g. 0.02 BTC); must be < 1 for a call"
    • addedInput schema / properties / premiumUsdt
      Added value: +{
      +  "description": "Binance only. Premium paid/received per unit, in USDT (e.g. 1500); must be < strike for a put",
      +  "type": "number"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "optionType",
      -  "position",
      -  "strike",
      -  "premiumCoin",
      -  "quantity",
      -  "scenarioPrice"
      -]New value: +[
      +  "optionType",
      +  "position",
      +  "strike",
      +  "quantity",
      +  "scenarioPrice"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / optionType / description
      Added value: +"Option type: \"call\" or \"put\""
    • addedInput schema / properties / position / description
      Added value: +"Option position: \"long\" (bought) or \"short\" (sold)"
  3. Changed1 schema field changed
    • changedInput schema / properties / premiumCoin / description
      Previous value: -"Premium paid/received per contract, in the base coin (matches Deribit's own quoted price, e.g. 0.02 BTC) — must be < 1 for a call"New value: +"Premium paid/received per contract, in the base coin (matches Deribit's own quoted price, e.g. 0.02 BTC); must be < 1 for a call"
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description goes further by explaining coin settlement consequences (capped long-call upside, unbounded long-put downside in coin terms), null meaning for max profit/loss, and input validity constraints. It does not discuss authentication, rate limits, or computational cost, but those are less relevant for a local calculation tool.

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?

Purpose and the coin-settlement caveat are front-loaded, and every clause carries information about payoff shape or return fields. It is delivered as one dense block with the return list split across two exchange branches rather than clearly structured, and the defensive "not a bug" phrasing is slightly wasted space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description enumerates the returned fields (intrinsicPerUnitCoin, scenarioPnlCoin, scenarioPnlUsd, breakevenPrice, maxLoss/maxProfitCoin, isProfitable) for both venues. Combined with the exclusions list and settlement caveats, an agent has everything needed to call it and interpret the result.

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 100%, so the baseline is 3, but the description adds real routing meaning on top: premiumCoin is used for coin-settled Deribit, premiumUsdt for Binance, and scenarioPnlUsd is described as a conversion of coin P&L at the scenario price. It also restates edge-case constraints and explains how quantity is coin-denominated, which goes slightly beyond the per-field schema text.

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 opening sentence names the exact verb/resource and scope: payoff, P&L, and breakeven for a single-leg Deribit BTC/ETH option at a given scenario price at expiry. It implicitly and then explicitly separates itself from siblings like run_spread_payoff (single leg only), run_option_greeks (Greeks not covered), and run_black_scholes (value before expiry not covered).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives literal trigger phrases ("what does my BTC call/put pay off at price X?", "where's my breakeven on this option?") plus an explicit exclusions list: early exercise, margin, fees, Greeks, probability of profit, and pre-expiry value. The exchange selector guidance (deribit vs binance settlement) further routes the agent correctly.

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.