Skip to main content
Glama

Fair Value MCP Server

Option and warrant pricing

calculate_option
Read-onlyIdempotent

Option-pricing engine. Price European and American options and warrants (Black-Scholes, Black-76, CRR binomial, Garman-Kohlhagen FX, digital, range, share-based) and their greeks. Use this for a single contingent claim or warrant on one underlying; it does NOT price listed structured payoffs such as CBBCs, inline/derivative warrants or autocallables (use calculate_structured_product). Methods: black_scholes: spot, strike, maturity, risk_free, volatility, option_type; black76: forward, strike, maturity, risk_free, volatility, option_type; binomial_american: spot, strike, maturity, risk_free, volatility, option_type, steps; garman_kohlhagen: spot, strike, maturity, domestic_rate, foreign_rate, volatility, option_type; barrier_first_passage: spot, strike, maturity, risk_free, volatility, option_type, barrier, barrier_type; asian_average: spot, strike, maturity, risk_free, volatility, option_type, average_type; digital: spot, strike, maturity, risk_free, volatility, cash_payout; range: spot, lower_strike, upper_strike, maturity, risk_free, volatility, payout; share_based: share_price, exercise_price, expected_life, volatility, risk_free, dividend_yield. Supply exactly one method with its declared inputs (no defaults). An unknown method, a missing input, or an extra field returns an error envelope (code INVALID_ARGUMENT) instead of raising.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spotNoSpot price of the underlying (or FX rate for garman_kohlhagen).
stepsNoLattice steps for binomial_american (>=50).
methodYesFormula to apply; the tool description lists the exact inputs each value requires.
payoutNoFixed payout when the range condition is met.
strikeNoStrike or exercise price in the same currency as spot.
barrierNoKnock level for barrier_first_passage.
forwardNoForward/futures price of the underlying.
maturityNoTime to expiry in years (0.5 = six months); > 0.
risk_freeNoContinuously-compounded risk-free rate (decimal).
volatilityNoAnnualized volatility (decimal, 0.30 = 30%); > 0.
cash_payoutNoFixed cash amount paid when the digital condition is met.
option_typeNoOption right.
share_priceNoGrant-date share price (IFRS 2).
average_typeNoAveraging convention.
barrier_typeNoBarrier direction.
foreign_rateNoForeign continuously-compounded rate (decimal).
lower_strikeNoLower strike of the range.
upper_strikeNoUpper strike of the range.
domestic_rateNoDomestic continuously-compounded rate (decimal).
expected_lifeNoExpected life of the award in years (IFRS 2).
dividend_yieldNoContinuous dividend yield (decimal).
exercise_priceNoExercise price of the award (IFRS 2).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError detail, present only when status='error'.
stepsNoOrdered computation steps, when the method reports them.
valueNoPrimary result: a number for scalar methods, an object for valuation methods.
methodNoMethod or tool name that produced the result.
statusYes'ok' on success, 'error' on failure.
tickerNoTicker the result pertains to, when applicable.
assumptionsNoInputs and assumptions used, echoed for traceability.
formula_refNoFormula or standards reference for the method.
data_timestampNoISO-8601 UTC timestamp of the underlying data, when fetched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so safety is covered. The description adds genuinely useful behavior beyond the schema: the 'exactly one method with its declared inputs (no defaults)' rule and the error envelope contract (INVALID_ARGUMENT instead of raising). It does not describe whether greeks are always returned, but the output schema covers the return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The prohibition clause is front-loaded well, but the per-method input lists read as a compressor run-on and are somewhat redundant with the method enum plus parameter descriptions. The content is justified by the combinatorial method/input matrix, but the dense single block is heavy to parse.

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?

Given a 9-way method enum over 22 parameters with only one required field, the method-to-input mapping is the key missing piece and it is provided. An output schema exists so return values need not be explained, and the error contract closes the remaining gap. Nothing an agent needs to form a valid call is absent.

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 description coverage is 100%, so the schema documents each parameter's meaning and constraints (maturity > 0, volatility > 0, IFRS 2 labels). The description goes further by mapping which inputs each method value requires, which is semantic information the field-level schema does not express. It does not add unit/format details beyond 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?

States a specific verb (price) and a well-defined resource (European/American options and warrants) with the exact formula families named. It explicitly distinguishes itself from the sibling calculate_structured_product, which an agent could otherwise confuse given the overlapping 'contingent payoff' domain.

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?

Explicitly names the exclusion set (CBBCs, inline/derivative warrants, autocallables) and routes the agent to the correct sibling calculate_structured_product. The 'single contingent claim or warrant on one underlying' framing gives the positive selection criterion.

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.