MCP-Injector研究:工具故障下120B模型容错并不优于20B
Tool-Calling LLM Agents Under Realistic MCP Faults: Scale Does Not Purchase Fault Tolerance
给做智能体的朋友:这篇测了 MCP 工具挂掉时各家 agent 框架的表现,结论挺反直觉,模型变大不顶用,框架的错误处理才关键。
arXiv 论文 MCP-Injector 是一款针对 MCP 工具调用路径的协议级故障注入中间件,支持永久、瞬时、间歇三类故障模式。故障模型基于 1,774 个开源 MCP 仓库中 57,240 条 issue 与 PR 记录标定。在 1,350 组实验中,两个 gpt-oss 骨干(20B 与 120B)在故障注入下任务完成分从 8.08 跌至 3.23,120B 的容错率与 20B 无显著差异(p=0.96)。结果显示 OpenAI Agents SDK、LangChain 等框架层的错误处理对容错影响大于模型规模。
Tool-Calling LLM Agents Under Realistic MCP Faults: Scale Does Not Purchase Fault Tolerance
LLM agents increasingly rely on external tools exposed via the Model Context Protocol (MCP), yet current benchmarks assume tools respond correctly and on time, leaving agent resilience to realistic tool failures untested. We introduce MCP-Injector, a drop-in, protocol-aware fault-injection middleware that interposes on the MCP tool-call path with controlled persistence (permanent, transient, intermittent) and seedable schedules. Its fault model is calibrated to the observed incident distribution (failure mode x persistence) of the public MCP ecosystem, mined from 57,240 issue and pull-request threads across 1,774 open-source MCP repositories. In a 1,350-cell experiment crossing two backbone sizes (20B, 120B), three agent stacks (custom multi-round plan-and-execute, OpenAI Agents SDK, LangChain), and three fault injection conditions, we find that faults drawn from this permanent-heavy stress profile cause severe quality degradation (task-completion score falls by 60%, from 8.08 to 3.23 out of 10), and that scale does not purchase fault tolerance for the two gpt-oss backbones we test: the 120B retains no larger share of its fault-free score under faults (resilience-ratio model, $p = 0.96$), and its completion rate under faults is, if anything, lower (91.1% vs. 95.6%; difference 4.4 points, 95% CI $[-0.2, 9.3]$). Agent stacks differ in how well they absorb faults, which suggests that framework-level error handling matters more than model scale. These results demonstrate that capability benchmarks alone can mask operational brittleness, motivating protocol-aware fault injection as a complementary evaluation dimension for tool-calling agents.