Skip to main content
Glama

price_yoy_inflation_swap

Prices a year-on-year inflation swap using supplied market data, YoY index, curve, and fixings, returning valuation and cash flows for fixed versus inflation-linked legs.

Instructions

Price a year-on-year inflation swap (POST /price-year-on-year-inflation-swap).

The market must carry the YoY inflation index and a YoYInflation curve. fixings (YoY rates) is REQUIRED for the same reason as in price_zc_inflation_swap. Fixed and YoY legs share the preset's schedule (annual by default); spread is added to the YoY rate.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofNo
tenorNo
marketYes
presetNoEUR_HICP
spreadNo
fixingsYes
notionalYes
frequencyNo
swap_typeYes
fixed_rateYes
request_idNo
include_flowsNo
effective_dateNoas_of
inflation_curveYes
termination_dateNo
additional_tradesNo
discounting_curveYes
calendar_overridesNo
inflation_index_idYes
market_data_sourceYes
schedule_overridesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the burden and does add real context: the market must carry a YoY inflation index and YoYInflation curve, fixings are REQUIRED, and fixed/YoY legs share the preset schedule. However it is silent on permissions, error behavior, and what the pricing result contains (though an output schema exists).

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?

Front-loaded with the purpose and endpoint, and formatted with a clear Args section. The market_data_source block is verbose and repetitive, while other equally complex parameters get no prose at all, so the space allocation is unbalanced.

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

Completeness2/5

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

For a 21-parameter, 9-required tool with 0% schema coverage and no annotations, the description explains only a handful of inputs and omits key concepts (market object shape, preset selection, curve naming, additional_trades semantics). Output return values are covered by the output schema, but the input side is substantially under-specified.

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 0% across 21 parameters, so the description must compensate, and it does so for market_data_source (a full provenance enum explanation) and for spread/fixings/frequency. But the majority of parameters (market, preset, curve ids, additional_trades, calendar_overrides, schedule_overrides, include_flows, request_id) remain unexplained in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 year-on-year inflation swap') plus the underlying endpoint, and cross-references the sibling price_zc_inflation_swap to signal the family it belongs to. It stops short of an explicit differentiator against price_yoy_inflation_cap_floor, so sibling discrimination is only partial.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use vs alternatives compared with price_zc_inflation_swap or price_yoy_inflation_cap_floor. It does give a strong negative rule within the market_data_source text ('If you would have to invent numbers, do not call this tool: ask the user'), which is genuine usage guidance but scoped to one argument rather than the tool as a whole.

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