TL;DR
When AI agents use external tools in the real world, those tools inevitably hang, return garbled data, or crash—yet standard benchmarks test agents in a sunny-day paradise where APIs always work. By building a "chaos engineering" middleware calibrated to tens of thousands of real-world bug reports, the authors show that realistic tool failures slash agent task quality by 60%. Most surprisingly, scaling up the underlying LLM from 20B to 120B parameters buys zero extra fault tolerance; how your orchestration framework handles errors matters far more than the size of your model.
What Problem Does This Paper Address?
Modern LLM agents get things done by calling external tools—fetching live data, running calculations, or querying databases. Increasingly, these connections are standardized via the Model Context Protocol (MCP), a universal client-server interface for tool invocation.
Once an LLM relies on external servers, agent quality becomes a distributed systems problem. In production, servers time out, schemas drift, and APIs return malformed payloads or silent wrong answers. However, existing tool-use benchmarks assume tools respond instantaneously and accurately. Traditional infrastructure-level chaos engineering (like killing a network pod) operates too low in the stack to test how an LLM semantically interprets a garbled response or recovers from a broken tool. Without controlled, protocol-level fault testing, we haven't been able to answer basic engineering questions: Which agent frameworks degrade gracefully? And can we just throw a bigger LLM at the problem to make it more resilient?
Methods
The authors introduce MCP-Injector, a drop-in, stack-agnostic middleware that sits transparently between an MCP client (the agent) and the MCP server (the tools), requiring zero code changes to either side.
Instead of inventing arbitrary bugs, the authors calibrated their injector to reality. Using GPT-4o (validated against human annotators with high agreement, $\kappa \ge 0.80$), they classified 57,240 real GitHub issue and pull-request threads into a joint taxonomy of what went wrong and how long it lasted:
- Failure Modes: Four content operators (minor character typos, word-level incorrect outputs, type/schema violations, and explicit MCP error messages) and two timing operators (30-second artificial delays and indefinite silent hangs).
- Persistence Schedules: Permanent (breaks every subsequent call), Transient (a one-off glitch), and Intermittent (temporally correlated bursts of failure).
Using seeded randomness for reproducible fault schedules, the authors ran a 1,350-cell full-factorial experiment crossing two open-weight backbones (gpt-oss-20B and gpt-oss-120B), three popular orchestration stacks (LangChain/LangGraph, OpenAI Agents SDK, and MCP-Bench's plan-and-execute loop), and three fault conditions (no proxy, pass-through proxy, and calibrated faults).
Datasets
- Public MCP Incident Corpus (Calibration): A newly mined dataset of 103,166 threads (filtered down to 57,240 English threads, yielding 14,829 classified failures) across 1,774 open-source MCP repositories gathered from MCP Market and Awesome MCP Servers. Notably, 91.3% of reported ecosystem bugs were permanent, with explicit errors making up the lion's share (65.6%).
- MCP-Bench (Evaluation): An existing multi-step tool-use benchmark using rubric-based LLM-as-a-judge scoring. The authors generated 25 naturalistic, single-server tasks across 25 live MCP servers, disabling distraction servers to isolate the effects of tool-call faults.
Key Insights and Ideas
- Bigger brains don't cushion broken tools: Scaling from a 20B to a 120B model within the same family yielded no resilience advantage. Why? Under faults, the 120B model actually made more tool calls (exposing itself to more fault injections), generated longer outputs within the shared context window, and got stuck in slightly longer retry loops, causing more wall-clock timeouts.
- Agents fail quietly, not loudly: Rather than crashing outright, the most common outcome under faults (56% of runs) is partial degradation—the agent finishes the loop and hands you a plausible-looking, low-quality answer.
- The "Tool Bypass" illusion: Sometimes, an agent doesn't even use a broken tool—or any tool at all—and just hallucinates or calculates the answer from pre-trained memory (e.g., doing unit conversions in its head). Standard LLM judges often reward these ungrounded answers with high scores, masking operational failures unless you explicitly check for tool grounding.
- Architecture shapes recovery: Different frameworks nudge models into distinct post-failure habits. Plan-and-execute loops (MCP-Bench) tend to switch tools and replan on the next round, whereas ReAct-style loops (LangChain, OpenAI SDK) tend to fallback—giving up on tools early to emit a text-only response.
Key Results
- Severe Quality Drop: Under the calibrated fault stress profile, pooled task-completion scores plummeted by 60% (from 8.08 down to 3.23 out of 10). When requiring answers to actually be grounded in tool use, task fulfillment fell by 63%.
- Scale Buys Zero Resilience: In a mixed-effects model of the resilience ratio (faulty score divided by baseline score), the model-size effect was indistinguishable from zero ($p = 0.96$). Descriptively, the 120B model completed fewer tasks under faults than the 20B model (91.1% vs. 95.6%).
- Framework Differences: LangChain achieved the highest completion rate under faults (95–97%), outperforming MCP-Bench (91–95%, losing an extra 0.93 score points relative to LangChain, $p = 0.048$) and OpenAI Agents SDK (88–95%, losing an extra 0.84 points, $p = 0.074$).
Limitations and Future Work
The authors are admirably transparent about the boundaries of their study:
- GitHub Reporting Bias: People file GitHub issues for reproducible, permanent bugs far more often than fleeting network blips. Consequently, the 91%-permanent profile acts as a heavy stress test rather than true production telemetry, leaving transient and intermittent regimes under-explored (only 9 of 1,905 fired faults).
- Entangled Variables: Because different agent stacks naturally make different numbers of tool calls (MCP-Bench averaged 8.6 fault events per run vs. ~2 for LangChain/OpenAI), fault exposure and error handling remain partially entangled.
- Scope: Only one model family (
gpt-ossat 16K context) was tested on relatively easy, single-server tasks.
Future work aims to tackle multi-server orchestration, longer-horizon tasks, and active mitigations like fault-aware agent planning.
Summary updated