Skip to main content
Glama

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

Straddle and Strangle

workflow.run_straddle_strangle
Read-only

Payoff, P&L, and both breakeven prices for a long or short straddle/strangle (a call + a put on the same Deribit BTC/ETH underlying, both legs the same direction) at a scenario price. A straddle is callStrike === putStrike; any callStrike > putStrike makes it a strangle, same formula either way. Coin-settled like workflow.run_options_payoff: a long position's max loss is the flat total premium paid (between the strikes, both legs worthless); max profit is technically unbounded, dominated by the put leg's payoff as price falls toward zero. Edge cases: callStrike must be at or above putStrike; strikes, premiums and quantity above zero; for the Deribit coin-settled form callPremiumCoin plus putPremiumCoin must be below 1. Not covered: early exercise, margin, fees, Greeks and probability of profit; the result is the payoff at expiry at the one scenario price. Use when user asks about a straddle or strangle, e.g. "what does a BTC straddle pay off if price barely moves?" or "where are my breakevens on this strangle?". Returns: combinedIntrinsicCoin, scenarioPnlCoin, scenarioPnlUsd, upperBreakevenPrice, lowerBreakevenPrice, maxLossCoin/maxProfitCoin (null = unbounded), isStraddle, isProfitable. With exchange "binance" (USDT-settled, flat payoff, callPremiumUsdt and putPremiumUsdt) it returns: totalPremiumUsdt, combinedIntrinsicUsdt, scenarioPnlUsdt, upperBreakevenPrice (call strike + total premium), lowerBreakevenPrice (put strike - total premium, null when that is not above zero), maxLossUsdt/maxProfitUsdt (null = unbounded: the long side's profit is unlimited, the short side's loss is unlimited); 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": {
      "position": "<position>",
      "callStrike": "<callStrike>",
      "putStrike": "<putStrike>",
      "quantity": "<quantity>",
      "scenarioPrice": "<scenarioPrice>"
    },
    "name": "workflow.run_straddle_strangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 straddle/strangle units (both legs sized equally)
putStrikeYesPut leg strike, USD. Must be <= callStrike.
callStrikeYesCall leg strike, USD. Equal to putStrike for a straddle, higher for a strangle.
scenarioPriceYesUnderlying price in USD to evaluate the payoff at
putPremiumCoinNoDeribit only. Put leg premium per contract, in the base coin
putPremiumUsdtNoBinance only. Put leg premium per unit, in USDT
callPremiumCoinNoDeribit only. Call leg premium per contract, in the base coin (e.g. 0.02 BTC)
callPremiumUsdtNoBinance only. Call leg premium per unit, in USDT

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / callPremiumCoin / description
      Previous value: -"Call leg premium per contract, in the base coin (e.g. 0.02 BTC)"New value: +"Deribit only. Call leg premium per contract, in the base coin (e.g. 0.02 BTC)"
    • addedInput schema / properties / callPremiumUsdt
      Added value: +{
      +  "description": "Binance only. Call leg premium per unit, in USDT",
      +  "type": "number"
      +}
    • 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 / putPremiumCoin / description
      Previous value: -"Put leg premium per contract, in the base coin"New value: +"Deribit only. Put leg premium per contract, in the base coin"
    • addedInput schema / properties / putPremiumUsdt
      Added value: +{
      +  "description": "Binance only. Put leg premium per unit, in USDT",
      +  "type": "number"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "position",
      -  "callStrike",
      -  "putStrike",
      -  "callPremiumCoin",
      -  "putPremiumCoin",
      -  "quantity",
      -  "scenarioPrice"
      -]New value: +[
      +  "position",
      +  "callStrike",
      +  "putStrike",
      +  "quantity",
      +  "scenarioPrice"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / position / description
      Added value: +"Option position: \"long\" (bought) or \"short\" (sold)"
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive/closed-world, and the description still adds substantial behavior: the payoff formula, that between the strikes both legs expire worthless so max loss is flat premium, that max profit is unbounded and dominated by the put leg, plus hard validation edges (callStrike >= putStrike, all values > 0, callPremiumCoin + putPremiumCoin < 1). It also discloses the exchange-dependent branch and how Binance differs (USDT-settled, flat payoff, USDT not converted to USD).

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 return summary are front-loaded in the opening sentence, and the middle section is dense but every clause carries a rule or a constraint. The long enumeration of return fields is justified only because no output schema exists, though it makes the description heavier than ideal.

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?

With 11 parameters, two settlement regimes, and no output schema, the description carries the full burden and meets it: it documents both return shapes field-by-field, states the formulas behind the breakevens, and enumerates validation edges. An agent has everything needed to call it correctly 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; the description nonetheless adds meaning the schema does not, notably the straddle/strangle decision rule from callStrike vs putStrike, the 'both legs same direction' sizing assumption, and the coin-premium sum constraint under 1 for Deribit. It also clarifies which premium fields pair with which exchange value.

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 first sentence names a specific verb set (payoff, P&L, breakevens) and the exact resource (long/short straddle/strangle on a call + put of the same Deribit underlying), and it explicitly distinguishes straddle vs strangle by strike relation. It also positions itself against the sibling workflow.run_options_payoff by naming the shared coin-settled convention.

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?

It gives explicit trigger conditions with two sample user phrasings ('what does a BTC straddle pay off if price barely moves?', 'where are my breakevens on this strangle?') and lists what is out of scope (early exercise, margin, fees, Greeks, POP). What it does not do is say which sibling to call instead when the user's structure is not a straddle/strangle, so the routing to run_spread_payoff or run_options_payoff is only implied.

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.