Skip to main content
Glama

Market Wizardry OTC Rates & XVA

Simulate OTC Counterparty Credit Exposure Profile (EE, EPE, ENE, PFE)

simulate_exposure_profile
Read-onlyIdempotent

Use whenever computing OTC counterparty credit risk profiles (EE, EPE, Effective EPE, ENE, PFE 95%/99%, peak exposure timing) for an IRS or CCS, or comparing mid-life humped IRS exposure vs maturity-peaking CCS notional re-exchange exposure.

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>"
    },
    "name": "simulate_exposure_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoDeterministic integer PRNG seed for reproducible Monte Carlo exposure profiles (default 42).
swapYesUnderlying IRS or CCS trade specification.
pathsNoNumber of antithetic Monte Carlo simulation paths (250 to 5000, default 2000).
fxVolPctNoOptional annualized lognormal FX spot volatility in percent (e.g. 10.5 for 10.5%); defaults to active regimeId ATM FX vol for CCS and 0 for IRS.
rateVolBpsNoOptional annualized Hull-White 1F normal short-rate volatility in bps (e.g. 85); defaults to active regimeId currency vol.
meanReversionNoOptional Hull-White 1F mean reversion speed a in decimal (e.g. 0.03); defaults to active regimeId.
confidenceLevelNoPotential Future Exposure (PFE) quantile confidence level (0.95 or default 0.99).
foreignRateVolBpsNoOptional foreign currency Hull-White 1F normal short-rate volatility in bps; defaults to active regimeId.
fxRateCorrelationNoCorrelation between domestic short-rate and FX spot shocks in [-0.95, 0.95] (default 0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive, closed-world operation, so the safety profile is covered. The description adds useful context by naming the exposure metrics and comparison use case, but it does not disclose simulation methodology, return structure, or computational caveats beyond what the schema and annotations provide.

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?

The description is a single front-loaded sentence that immediately states the primary use case. It is dense but efficient; the long parenthetical metric list and the comparison clause make it slightly cluttered, though every element is relevant.

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

Completeness4/5

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

For a complex nine-parameter nested simulation tool, the schema and annotations carry most of the operational detail, while the description names the key output metrics and intended comparison use case. The main remaining gap is that it does not describe the return structure or time-profile format, which is more important because no output schema exists.

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 100%, so the input schema already documents all nine parameters in detail. The description mentions PFE 95%/99%, which maps to confidenceLevel, but it adds no parameter-level meaning beyond the schema's own descriptions.

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?

The description states a specific computation: OTC counterparty credit risk profiles (EE, EPE, Effective EPE, ENE, PFE, peak exposure timing) for IRS or CCS trades. It clearly separates this from pricing by naming exposure metrics, but it does not explicitly distinguish the tool from siblings such as price_swap or compute_xva_waterfall.

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?

The phrase 'Use whenever computing...' gives clear when-to-use guidance, and the description adds two concrete scenarios: standard IRS/CCS exposure profiles and comparing mid-life humped IRS exposure against maturity-peaking CCS exposure. It does not state when not to use the tool or name alternative tools for overlapping workflows.

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.