Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Option pricing, Black-Scholes and Greeks

options_price
Read-only

Price a European call and put with Black-Scholes-Merton and get delta, gamma, vega (per vol point), theta (per day), rho, d1, d2 and the probability of ending in the money; or give a market price and get the implied volatility. Inputs: spot, strike, expiry date or days, volatility, interest rate and dividend or funding yield in percent. Pure arithmetic, no data source. Use for crypto, stock or FX options, to price a quote or size a hedge. Example: spot=100, strike=100. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
volNoAnnual volatility in percent, e.g. 20 (default 50); not needed with price
daysNoDays to expiry (default 30), or give expiry or years
rateNoRisk-free rate in percent per year, e.g. 5 for 5% (default 0)
spotYesPrice of the underlying
typeNocall or put, for the implied volatility (default call)
priceNoA market option price: returns the implied volatility
yearsNoYears to expiry, instead of days
expiryNoExpiry date (ISO), instead of days
strikeYesStrike price
dividendNoDividend, funding or borrow yield in percent per year (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Excellent disclosure beyond the annotations: it names every returned field (delta, gamma, vega per vol point, theta per day, rho, d1, d2, probability of ITM), which matters because there is no output schema, and it pins units for vega and theta. It also states the cost model (charged per call, $0.01/call via x402 USDC or card key, first 10 free, failed calls free) and that calls change nothing, which explains why repeats are not free despite idempotentHint=false.

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?

Single dense paragraph that front-loads what is computed and what is returned, then inputs, then usage, then the example and billing. Semantically dense rather than padded; the example is short and illustrative, and no sentence is filler given the missing output schema.

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?

Very complete for a 10-parameter tool with no output schema: it covers modes, units, defaults, return values, and billing. The one gap is that expiry-vs-days-vs-years precedence is only hinted at, leaving the agent to rely on the schema for mutual exclusivity.

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 description coverage is 100%, so the schema already documents every parameter including 'vol not needed with price' and the default values. The description restates the input list and the percent/date-vs-days conventions but adds little beyond the schema beyond clarifying the price-to-implied-vol mode switch. Baseline 3 is appropriate.

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 and resource — price a European call/put with Black-Scholes-Merton and return named Greeks — plus a second mode (market price in, implied vol out). The phrase "Pure arithmetic, no data source" cleanly separates it from the market-data siblings such as btc_price or fx, so an agent can disambiguate without opening a 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?

Gives clear usage contexts: crypto, stock or FX options, pricing a quote or sizing a hedge, and explicitly routes the alternative mode ("or give a market price and get the implied volatility"). It does not name a when-not-to-use case or a sibling alternative, but the "no data source" framing implies the boundary with price-feed tools.

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