Compute CVA, DVA, FVA, COLVA & MVA Waterfall Under ISDA/CSA Terms
compute_xva_waterfallUse whenever calculating CVA, DVA, FVA, COLVA, or MVA (in dollars and running bps), quoting an all-in XVA-adjusted client swap rate, or quantifying XVA savings across ISDA CSA terms (Uncollateralized, 1-Way/2-Way VM, Thresholds, MTA, MPOR, Initial Margin/SIMM).
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": {
"swap": "<swap>",
"csa": "<csa>"
},
"name": "compute_xva_waterfall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csa | Yes | Requested ISDA Credit Support Annex (CSA) configuration. | |
| seed | No | Deterministic integer PRNG seed (default 42). | |
| swap | Yes | Underlying IRS or CCS trade specification. | |
| paths | No | Number of Monte Carlo exposure paths for XVA integration (default 2000). | |
| bankRecovery | No | Bank/dealer default recovery rate in decimal [0, 0.95] (defaults to regime 0.40). | |
| colvaSlippageBps | No | Optional CSA collateral remuneration / CTD optionality spread in bps for COLVA; omit to use regime default. | |
| bankHazardSpreadBps | No | Bank/dealer senior 5Y CDS spread in bps; omit to use active regimeId dealerSeniorCdsBps5Y. | |
| bankFundingSpreadBps | No | Bank unsecured funding spread over OIS in bps for FVA; omit to use active regimeId dealerFundingSpreadBps. | |
| counterpartyRecovery | No | Counterparty default recovery rate R in decimal [0, 0.95] (defaults to regime 0.40). | |
| counterpartyCreditProfile | No | Default counterparty credit tier used when counterpartyHazardSpreadBps is omitted ("IG_CORPORATE" or "CROSSOVER_CORPORATE"). | IG_CORPORATE |
| mvaInitialMarginSpreadBps | No | Optional funding spread in bps on segregated Initial Margin for MVA; omit to use regime default. | |
| counterpartyHazardSpreadBps | No | Optional counterparty flat 5Y CDS par spread in bps (e.g. 58 or 275); omit to use active regimeId creditAndFunding spread. |