Why ChatGPT & Claude Hallucinate Swap & XVA Math (vs MCP)

Last Verified Against @marketwizardry/quant-core & Live RFR Conventions: December 3, 2026 · Market Wizardry Desk (G10 Rates Structurer MD)

Desk Verdict · Direct Answer

Ungrounded ChatGPT and Claude hallucinate OTC swap and XVA math because next-token prediction cannot solve coupled nonlinear discount-factor equations, enforce multi-curve CSA discounting, or run seeded Monte Carlo exposures. Routing math through marketwizardry-mcp eliminates hallucinations completely: < 1e-15 par error across 36 global curves, 372–845 tokens per call, 0.35–151 ms latency, 70/70 tests, and 14/14 invariants.

Large Language Models are phenomenal Socratic tutors and miserable pricing engines. Ask a raw chatbot to bootstrap a 30Y SOFR curve or price an uncollateralized EUR/USD Cross-Currency Swap, and it will write three paragraphs of confident institutional prose wrapping numbers that violate no-arbitrage by 15 basis points. On a trading floor, confident and wrong is the fastest way to blow up a book. The fix is architectural—Zero LLM Math via the Model Context Protocol (MCP):

The Zero-LLM-Math Architecture (Bring Your Own Tokens · BYOT)

Client LLM (Claude / ChatGPT / Cursor):  Socratic MD Tutoring + Structuring Dialogue (0 mental arithmetic)

marketwizardry-mcp (Float64Array Engine):  6 Read-Only Tools · < 1,200 Tokens (372–845) · < 500 ms (0.35–151 ms)

1. Six Verified Failure Modes: Raw ChatGPT / Claude vs. marketwizardry-mcp

Every benchmark below is continuously verified across 70/70 automated tests, 14/14 mathematical invariants, and 2,096 live zero-VBA Excel formulas across Market Wizardry’s 4 open-formula companion workbooks (MW-01..04):

OTC Failure Mode Raw ChatGPT / Claude (No Tools) marketwizardry-mcp Deterministic Proof
1. Single-Curve Conflation Discounts foreign swaps on domestic OIS, ignoring USD CSA collateral currency. Decouples RFR projection from CSA discounting; round-trip triangulation (USD → EUR → USD) verified to 1.110e-16.
2. Day-Count Drift Treats 4.00% USD SOFR, GBP SONIA, SGD SORA & 30/360 bonds as identical. Enforces exact ACT/360 vs. ACT/365F (365/360 = 1.389% cash gap) with 0.000e+0 leap-year additivity.
3. Par Swap Residuals Guesses exponentials or linearly interpolates par rates, breaking PV = 0. Dekker-Brent log-linear DF stripping: worst par error 9.159e-16 (20 OIS curves), 9.992e-16 (16 CCS curves), 1.87e-16 in MW-01 (854 Excel formulas).
4. Missing CIP Basis Applies frictionless textbook CIP and omits negative USD funding basis. Strips 4 crisis regimes (Mar 2020 -84 bps 1Y USD/JPY, -68 bps EUR/USD); reproduces -$44,988,007.48 Excel USD/JPY PV within < $0.01.
5. Exposure Shape Confusion Claims all swaps hump mid-life or guesses PFE multipliers without principal exchange. Seeded HW1F + FX GBM (seed=42): IRS peaks 1.5Y ($5.42M) vs. Const CCS 4.999Y ($60.44M) vs. MTM CCS ($11.50M, 5.26x drop).
6. Wrong XVA Signs & CSA Flips DVA vs. CVA/FVA signs or claims Zero-Threshold VM sets CVA to $0. Exact 161-pt quadrature monotonicity ($0 → $44,185 → $67,443 → $188,693 → $561,868 → $681,669); SIMM IM cuts CVA to $364 with $101,386 MVA.

2. Profiled BYOT Token & Latency Budget Across All 6 MCP Tools

Because learners pay their own LLM context tokens under Bring Your Own Tokens (BYOT), marketwizardry-mcp never dumps 10,000-path Monte Carlo matrices into chat. A hard runtime guard enforces < 1,200 tokens and < 500 ms on every tool call (measured 372–845 tokens and 0.35–151 ms):

MCP Tool (xyz.marketwizardry/otc-rates-xva) Access Tier Tokens (<1,200) Latency (<500 ms)
compute_daycount_and_conventions Free Starter + Pro 372 ~0.35–0.6 ms
bootstrap_curves Starter (OIS) / Pro (CCS & 3rd-CCY) 414–424 ~0.35–0.7 ms
price_swap Starter (IRS) / Pro (Const & MTM CCS) 752–762 ~1.5–2.7 ms
simulate_exposure_profile (2,000 paths) Pro Remote MCP 512 ~145–151 ms
compute_xva_waterfall (5 XVAs + CSA ladder) Pro Remote MCP 437 ~145–151 ms
audit_swap_mechanics (9-check MD audit) Starter (IRS) / Pro (CCS & CSA) 845 ~0.7–1.4 ms

Rookie Trap (Ungrounded Prompting)

  • Asking ChatGPT or Claude “Calculate CVA and par basis on a 5Y EUR/USD CCS” without deterministic tools attached.
  • Assuming Python code-interpreter scripts written on the fly obey post-2008 multi-curve CSA discounting, ACT/360 vs. ACT/365F, and Bachelier MPOR quadrature.
  • Burning 15,000+ context tokens debugging hallucinated curve formulas before an interview or client pitch.

Desk Standard (Zero-LLM-Math MCP)

  • Attach marketwizardry-mcp once and delegate 100% of curve stripping, PV01 ladders, Monte Carlo PFE, and XVA integrals to verified TypeScript kernels.
  • Run all 3 Socratic Desk-Mandate Prompts (ois-multi-curve-bootstrapping-lab, corporate-ccs-issuance-hedge, csa-negotiation-xva-pricing).
  • Cross-check every AI explanation against live F2 Excel formulas across our 2,096-formula workbook suite.

3. Connect Free Starter MCP in 30 Seconds (Zero-Node Remote OR Local npx)

You do not even need Node.js installed to test Market Wizardry’s Free Starter MCP. Point Claude Web, ChatGPT MCP, Cursor, or Windsurf directly at our Zero-Node Remote Starter endpoint (https://mcp.marketwizardry.xyz/mcp, no API key required), or add local stdio to claude_desktop_config.json:

// Option A: Zero-Node Free Remote Starter (no install, no API key):
// Remote Streamable HTTP URL: https://mcp.marketwizardry.xyz/mcp

// Option B: Local stdio (claude_desktop_config.json):
{
  "mcpServers": {
    "marketwizardry": {
      "command": "npx",
      "args": ["-y", "marketwizardry-mcp"]
    }
  }
}

Verify Every Number Live · BYOT Pricing

Inspect Our Full Benchmark Dossier or Upgrade to Pro Remote MCP

Start free forever via Zero-Node Remote Starter or our browser sandboxes. Ready for all 4 historical crisis regimes, CCS basis, seeded PFE, and 5-mode XVA? Choose 120-Day Sprint ($119 + 2 Core V2 Workbooks) or Pro Annual ($249/yr · $129/yr .edu via EDU-DESK50 + All 3 V2 Workbooks + Exclusive 3-Tab XVA Companion)—backed by our 14-Day Desk-Grade Math Guarantee.

Quick Desk FAQ: Quantitative Finance MCP & AI Accuracy

Can ChatGPT or Claude accurately bootstrap a SOFR curve or price XVA on their own?

No. Standalone LLMs predict plausible text rather than running nonlinear root-finders or stochastic simulations, leading to six recurring failures: single-curve discounting, ACT/360 vs. ACT/365F drift, non-zero par swap residuals, missing cross-currency basis, IRS vs. CCS exposure confusion, and inverted XVA sign conventions. Attaching marketwizardry-mcp fixes all six deterministically to < 1e-15 par error.

Do I need to install Node.js or pay for a subscription to try marketwizardry-mcp?

No. Market Wizardry's Tier 0 Free Starter ($0 forever) is available both via Zero-Node Remote Streamable HTTP at https://mcp.marketwizardry.xyz/mcp (no API key required) and locally via npx -y marketwizardry-mcp. It unlocks domestic OIS bootstrapping, Vanilla IRS pricing and audit, global RFR day-counts, all 5 mw:// playbooks, and all 3 Socratic desk prompts.

Why does marketwizardry-mcp cap every tool response under 1,200 tokens?

Under Bring Your Own Tokens (BYOT), learners use their own Claude, ChatGPT, or Cursor subscription for tutoring. Returning raw Monte Carlo path matrices would burn thousands of context tokens per prompt, so marketwizardry-mcp enforces a hard runtime budget returning compact headline metrics, 5-bucket Key-Rate PV01 ladders, coarse exposure grids, and pedagogical flags in 372 to 845 tokens and 0.35 to 151 ms.

Back to blog