Skip to main content
Glama

price_swaption

Price European, American, or Bermudan swaptions with quantra-mcp using user-supplied market data; get NPV, implied volatility, and risk details.

Instructions

Price a swaption (POST /price-swaption).

Args: market_data_source: where the market numbers in this call come from. user_pasted (the user pasted or typed the numbers in this conversation), user_file (the user attached a file/screenshot the numbers were read from), engine_example (an engine example's pricing block, only when the user explicitly asked to run an example), session (a market previously stored in this session, which itself came from one of the above). There is no value for estimated, recalled or placeholder data. If you would have to invent numbers, do not call this tool: ask the user for the data. preset: a preset with swaption + vanilla_swap blocks (EUR_EURIBOR_6M). underlying: the swap exercised into, as a VanillaSwapTrade (swap_type, notional, fixed_rate, effective_date, termination_date | tenor, ...). effective_date: "spot" = exercise_date + preset settlement days (engine-resolved). For an OIS underlying set underlying_type OisSwap. exercise_date: European / American. exercise_dates: Bermudan. settlement_type: Physical (method default from the preset, PhysicalOTC) or Cash (give settlement_method: CollateralizedCashPrice | ParYieldCurve). vol: {constant, type, displacement?, id?}, {expiries, tenors, vols, type, id?} (ATM matrix), {payload_type, payload, id?} (SmileCube / SabrParams / SabrCalibrate given raw) or a surface id in the market. Built surfaces are SwaptionVolSpec with the preset's swap_index_id. model: Black | ShiftedBlack | Bachelier (SwaptionModelSpec added, id <type>_model), {a, sigma, lattice_steps, id?} (HullWhiteLattice explicit) or a model id in the market. include_details: pricing.options.swaption_pricing_details (delta/vega/...). include_diagnostics: per-SABR-surface diagnostics in the response.

summary.swaptions: npv, implied_volatility, atm_forward, annuity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
volYes
as_ofNo
modelYes
marketYes
presetYes
request_idNo
underlyingYes
exercise_dateNo
exercise_typeNoEuropean
exercise_datesNo
include_detailsNo
settlement_typeNoPhysical
underlying_typeNoVanillaSwap
forwarding_curveYes
additional_tradesNo
discounting_curveYes
settlement_methodNo
calendar_overridesNo
market_data_sourceYes
include_diagnosticsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it explains that settlement_type Physical derives the method from the preset while Cash requires settlement_method, that 'spot' effective_date is engine-resolved via preset settlement days, that built surfaces are wrapped in SwaptionVolSpec with the preset's swap_index_id, and what include_details/include_diagnostics add. It still omits what the market dict must contain and any failure/reversibility behavior.

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?

Structured as a compact, dense Args list where each line addresses a distinct parameter or behavior; little is wasted. It is not front-loaded with a usage summary and the inline cross-references (engine enum names, preset block names) make it long, but the density is justified by a 20-parameter tool.

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?

An output schema exists, so the brief mention of summary.swaptions (npv, implied_volatility, atm_forward, annuity) is sufficient. For a tool at this complexity, though, leaving three required inputs (market, discounting_curve, forwarding_curve) entirely unexplained is an incompleteness an agent will notice at call time.

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?

Top-level schema description coverage is 0%, so the description must compensate, and it does explain roughly half the arguments well (market_data_source, preset, underlying, exercise_date(s), vol, model, include_details, include_diagnostics). But required arguments such as market, discounting_curve, forwarding_curve and as_of, plus additional_trades and calendar_overrides, are never described, leaving significant gaps.

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?

Opens with a specific verb+resource ('Price a swaption') plus the underlying endpoint. Against a sibling list containing price_vanilla_swap, price_cap_floor and calibrate_swaption_vol, an agent can immediately tell this is the swaption *pricing* (not calibration) tool.

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 an explicit exclusion: 'If you would have to invent numbers, do not call this tool: ask the user for the data,' and constrains engine_example to 'only when the user explicitly asked to run an example.' However, it never routes to the obvious alternatives (calibrate_swaption_vol, calibrate_swaption_model, price_vanilla_swap) or states prerequisites like a stored market being required first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.