Skip to main content
Glama

Quant Arbitrage & Risk Calculator MCP

bs_option_greeks

Compute exact Black-Scholes European option price and Greeks (Delta, Gamma, Vega, Theta, Rho) from volatility, OR solve Implied Volatility via safeguarded Newton-Raphson/Bisection from market_price.

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>",
      "time_to_expiry_years": "<time_to_expiry_years>",
      "risk_free_rate": "<risk_free_rate>",
      "option_type": "<option_type>"
    },
    "name": "bs_option_greeks"
  }
}

Input Schema

NameRequiredDescriptionDefault
spotYes
strikeYes
volatilityNoAnnualized volatility as decimal (e.g., 0.25 for 25%). Specify either volatility or market_price.
option_typeYes
market_priceNoObserved option price for Implied Volatility solving. Specify either volatility or market_price.
dividend_yieldNoOptional continuous dividend/staking yield (default 0).
risk_free_rateYesAnnualized continuously compounded risk-free rate (e.g., 0.05 for 5%).
time_to_expiry_yearsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It does usefully disclose the numerical method (safeguarded Newton-Raphson/Bisection) and the pricing model (exact Black-Scholes, European exercise), but omits what happens when IV fails to converge, error/precision behavior, and precedence when both input modes are provided.

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?

A single dense sentence front-loads the primary computation, lists the Greek outputs, and states the mutually exclusive input mode. No filler and the alternate path is easy to scan.

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

Completeness3/5

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

For an 8-parameter computational tool with no annotations and no output schema, the description should clarify the returned structure (are all Greeks always returned, how is IV surfaced), error behavior on non-convergence, and the precedence rule for conflicting inputs. It covers purpose and method well but leaves these operational gaps open.

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 50%: volatility, market_price, dividend_yield, and risk_free_rate are documented, while spot, strike, time_to_expiry_years, and option_type are not. The description reinforces the volatility/market_price duality but adds no units, conventions, or meaning for the undocumented parameters, leaving half the coverage gap unfilled.

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?

Names a specific verb (Compute) and resource (Black-Scholes European option price and Greeks), enumerates the Greeks, and explicitly states the second mode (Implied Volatility solving). An agent can identify exactly what the tool returns without opening the 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?

The dual-mode structure is clearly signposted: 'from volatility, OR solve Implied Volatility ... from market_price', which tells the agent which input drives the pricing path. However, it never states what to do if both volatility and market_price are supplied, nor when not to use this tool versus a sibling.

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