Skip to main content
Glama

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

Black-Scholes Option Price and Greeks

workflow.run_black_scholes
Read-only

Theoretical European option price and Greeks (delta, gamma, theta, vega, rho) from Black-Scholes, given manual spot/strike/days-to-expiry/volatility/risk-free-rate inputs plus an optional continuous dividend yield for stocks and ETFs (the implied-volatility and option-chain tools do not take one): no live data fetch. The live variant is workflow.run_black_scholes_live, which applies when checking a real Deribit, Binance or Bybit instrument, since that variant also reports how far the instrument's actual quoted price sits from what this formula implies. Prices are USD-denominated (the universal convention); callPriceCoin/putPriceCoin additionally divide by spot to match Deribit's own coin-settled quoting convention. Assumptions: European exercise only, one flat volatility for the whole life (no smile or skew), constant rate and dividend yield, a year of 365 calendar days, theta per calendar day. Edge cases: spot, strike, daysToExpiry and volatilityPct must be above zero; riskFreeRatePct and dividendYieldPct must be between 0 and 100, so a negative rate is refused; a deep out-of-the-money option returns a price and Greeks of exactly 0, and a very low volatility or very short expiry gives a very large gamma and theta, not an error. Not covered: early exercise (use workflow.run_american_option), discrete dividends, negative rates, transaction costs, taxes, margin, and Greeks adjusted for coin-settled (inverse) options: Greeks are standard USD Black-Scholes Greeks. Use when user asks "what should this option be worth at X% IV?" or wants raw Greeks for a hypothetical. Returns: callPriceUsd/putPriceUsd, callPriceCoin/putPriceCoin, deltaCall/deltaPut, gamma, vegaPerPct (per 1 vol point), thetaCallPerDay/thetaPutPerDay, rhoCallPerPct/rhoPutPerPct (per 1 rate point).

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": {
      "spot": "<spot>",
      "strike": "<strike>",
      "daysToExpiry": "<daysToExpiry>",
      "volatilityPct": "<volatilityPct>"
    },
    "name": "workflow.run_black_scholes"
  }
}

Input Schema

NameRequiredDescriptionDefault
spotYesUnderlying spot price, USD
strikeYesStrike price, USD
daysToExpiryYesCalendar days until expiry (can be fractional)
volatilityPctYesAnnualized implied volatility in percentage points, e.g. 60 for 60%
riskFreeRatePctNoRisk-free rate in percentage points. Default 0: standard crypto-options convention.
dividendYieldPctNoContinuous dividend yield in percent per year (1.2 means 1.2%), for stock and ETF options. Default 0: crypto has none. Range 0 to 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / dividendYieldPct
      Added value: +{
      +  "description": "Continuous dividend yield in percent per year (1.2 means 1.2%), for stock and ETF options. Default 0: crypto has none. Range 0 to 100.",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / riskFreeRatePct / description
      Previous value: -"Risk-free rate in percentage points. Default 0 — standard crypto-options convention."New value: +"Risk-free rate in percentage points. Default 0: standard crypto-options convention."
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld=false/destructive=false; the description adds a lot beyond that: no live data fetch, European-only exercise, flat vol (no smile), 365-day year, theta per calendar day, and refusal behavior for out-of-range inputs. The edge-case disclosure (deep OTM returns exactly 0 rather than erroring; low vol/short expiry yields very large gamma and theta, not an error) is precisely the kind of behavior an agent cannot infer from structured fields.

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, then alternatives, then assumptions/edge cases, then outputs — front-loaded and no sentence is truly filler. It is nonetheless a single dense paragraph with stacked parentheticals, so a reader must work through a wall of text; a few clauses (e.g. the coin-settled quoting aside) could be tightened without losing information.

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 no output schema, the description carries the return contract and does so thoroughly, enumerating callPriceUsd/putPriceUsd, coin-denominated variants, per-leg deltas, gamma, vegaPerPct, theta per day and rho per rate point. Assumptions, refusal conditions, and out-of-scope items are all covered, which is complete for a six-parameter pricing tool.

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 baseline is 3, but the description adds real meaning: dividendYieldPct is characterized as continuous and stock/ETF-specific while crypto defaults to zero, the rate is bounded 0–100 so negative rates are refused, and the Greek units are pinned to per-1-vol-point and per-1-rate-point. Minor gap: it does not restate fractional daysToExpiry or the volatilityPct percentage-point convention, though the schema already covers those.

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?

States a specific verb+resource: theoretical European option price and Greeks from Black-Scholes with manual inputs. It explicitly distinguishes itself from workflow.run_black_scholes_live (live Deribit/Binance/Bybit instruments) and from the implied-volatility and option-chain tools that do not accept a dividend yield, so an agent can pick it out of a very large sibling set.

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?

Gives an explicit trigger ('what should this option be worth at X% IV?' or raw Greeks for a hypothetical) and explicit exclusions routing elsewhere: live variant for real quotes, workflow.run_american_option for early exercise, implied-vol/dividend exclusions. The when-not conditions (negative rates refused, discrete dividends not covered) are named rather than left implicit.

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.