arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.32555cs.SEcs.AI
收藏

现实MCP故障下的工具调用大语言模型智能体:规模并不能带来容错性

Tool-Calling LLM Agents Under Realistic MCP Faults: Scale Does Not Purchase Fault Tolerance

SnT, University of Luxembourg(卢森堡大学 SnT);Tilburg University(蒂尔堡大学);Gran Sasso Science Institute(格兰萨索科学研究所);University of Naples Federico II(那不勒斯费德里科二世大学)

Antonio Ken Iannillo, Joshua Segun Owotogbe, Roberto Natella, Francesco Avallone, Kristina Kudryavtseva, Indika Kumara

AI总结:

该研究针对现实MCP故障测试工具调用LLM智能体,发现规模无法提升容错性,框架级错误处理比模型规模更关键,提出MCP-Injector作为补充评估维度。

摘要:

大语言模型智能体越来越依赖通过模型上下文协议(MCP)暴露的外部工具,但当前基准测试假设工具响应正确且及时,未测试智能体对现实工具故障的弹性。我们推出MCP-Injector,这是一种可直接接入、感知协议的故障注入中间件,它在MCP工具调用路径中插入,具备可控的持久性(永久、瞬态、间歇性)和可设置种子的调度方案。其故障模型根据从1774个开源MCP仓库的57240个问题和拉取请求线程中挖掘的公共MCP生态系统观测到的事件分布(故障模式×持久性)进行校准。在一项包含1350个单元的实验中,该实验涉及两种主干规模(20B、120B)、三种智能体栈(自定义多轮计划执行、OpenAI Agents SDK、LangChain)以及三种故障注入条件,我们发现,来自这种以永久故障为主的压力特征的故障会导致严重的质量下降(任务完成分数下降60%,从10分中的8.08降至3.23),并且对于我们测试的两种gpt-oss主干,规模并不能带来容错性:120B主干在故障下保留的无故障分数占比并未更大(弹性比模型,p=0.96),其故障下的完成率反而更低(91.1% vs 95.6%;差值为4.4个百分点,95%置信区间[-0.2,9.3])。智能体栈在吸收故障的能力上存在差异,这表明框架级别的错误处理比模型规模更重要。这些结果表明,仅能力基准测试会掩盖操作脆弱性,因此需要将感知协议的故障注入作为工具调用智能体的补充评估维度。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

相关深度报道

↑