Skip to main content
Glama

ScorpTech x402 Tools

Black Scholes

black_scholes
Read-onlyIdempotent

European option pricing (Black-Scholes-Merton with continuous dividend yield): call and put prices, delta, gamma, vega, theta per day, rho, d1/d2 and probability of finishing in the money; with a market price it solves implied volatility. Works for equity, index and crypto options (set the yield to 0). Returns JSON with: inputs, volatilityPct, d1, d2, call, put, moneyness. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/black-scholes

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>"
    },
    "name": "black_scholes"
  }
}

Input Schema

NameRequiredDescriptionDefault
spotYesUnderlying price
typeNoboth
strikeYes
ratePctNoRisk-free rate, continuous, percent
marketPriceNoOption market price: solve implied volatility (needs type call or put)
daysToExpiryYesCalendar days to expiry (year = 365)
volatilityPctNoAnnualised volatility in percent (not needed when solving implied vol)
dividendYieldPctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive semantics, and the description adds genuinely new behavior: a $0.002 USDC per-successful-call x402 charge on Base or Solana, plus an equivalent HTTPS endpoint. That cost/payment disclosure is exactly the kind of context annotations cannot carry. Minor deduction: the prose promises delta/gamma/vega/theta/rho but the enumerated return object lists only inputs, volatilityPct, d1, d2, call, put, moneyness, leaving the returned greek fields internally inconsistent.

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 purpose statement is front-loaded and the cost/endpoint details come last, which is the right ordering. The first sentence is densely packed with semicolon-separated clauses, and the return-field enumeration partially duplicates the opening greek list, costing some clarity.

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?

For an 8-parameter tool with no output schema, the description does the heavy lifting by naming return fields, the pricing model, the unit conventions, and the payment model. The one gap is the mismatch between the greeks advertised in the opening and the shorter return-field list, which an agent must reconcile on its own.

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 63%, and the description compensates for the main gap by explaining that dividendYieldPct is a continuous yield set to 0 for crypto, that ratePct is a continuous risk-free rate, and that marketPrice triggers implied-vol solving. It adds real meaning around the two undescribed parameters rather than restating the schema.

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 exact model (Black-Scholes-Merton with continuous dividend yield), the outputs (call/put prices, delta, gamma, vega, theta per day, rho, d1/d2, probability ITM), and the implied-volatility solving mode. This is a specific verb+resource statement that leaves no ambiguity about what the tool computes.

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 conditional guidance: supply marketPrice to solve implied volatility (which requires type call or put), and set dividend yield to 0 for equity/index/crypto. It also states applicability across asset classes. What's missing is any explicit exclusion or a named alternative for pricing tasks, though no sibling in the supplied list performs option pricing.

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