MFM bond calculator
bond_calculatorSame calculations as the fixed-income page. Supply actual dated positive cash flows including redemption, settlement, currency, and either total outlay (clean price + accrued interest + fees) or annual-effective yield as a fraction. Returns price, annual-effective ACT/365F IRR, Macaulay and modified duration, convexity, DV01, maturity and repricing scenarios. Or select one of the 10 published bond ETFs to read N-PORT exposures and reported curve risks; coupon is not yield. No quota consumed, nothing stored, no advice. Search/fetch clients: bond: settlement=2026-11-04; currency=EUR; price=100; 2027-11-04=105. ETF example: bond: etf=TLT; country=US; haircut=0.1
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bond_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etf | No | Instead of flows: one of the 10 published bond ETFs, to read its N-PORT exposures and reported curve risks. Accepts only country, haircut, spread_duration, spread_bps and source as other arguments. | |
| flows | No | Every future payment received after settlement, coupons and redemption, as {"date":"YYYY-MM-DD","amount":number ≥ 0}; up to 1,000. Example: [{"date":"2027-11-04","amount":105}]. | |
| price | No | Total outlay in the same unit as the flows: clean price + accrued interest + fees (e.g. 101.2 for flows per 100 of nominal). Give price or yield, not both. | |
| yield | No | Annual-effective yield as a fraction (0.035 = 3.5%), used to compute the price. Give price or yield, not both. | |
| source | No | Where the user took the cash flows or the price (prospectus, broker page); repeated in the result and not verified by MFM. | |
| country | No | With etf: two-letter ISO code of the government whose bonds are shocked in the sovereign scenario (required with haircut, spread_duration or spread_bps). | |
| haircut | No | With etf and country: loss on that government's bonds as a fraction of their value, 0 to 1 (0.1 = 10%). | |
| currency | No | ISO 4217 code of the price and of every cash flow, e.g. EUR. Required with flows. | |
| rate_bps | No | With flows: parallel change of interest rates in basis points for the repricing scenario (100 = +1 percentage point). | |
| fx_change | No | With flows: exchange-rate change applied in the scenario, as a fraction greater than −1 (0.05 = +5%, −0.1 = −10%). | |
| settlement | No | Settlement (purchase) date, YYYY-MM-DD. Required with flows. | |
| spread_bps | No | Spread change in basis points (100 = 1 percentage point): with flows for the repricing scenario; with etf and country together with spread_duration. | |
| spread_duration | No | With etf and country, together with spread_bps: spread duration in years used for the spread scenario. |