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

MCPAgentBench: 一个用于评估LLM代理MCP工具使用的现实任务基准

MCPAgentBench: A Real-world Task Benchmark for Evaluating LLM Agent MCP Tool Use

Peking University(北京大学);ZTE(中兴通讯)

Zixiang Liu, Wenrui Liu, Elsie Dai, Wenhan Yu, Lei Yu, Tong Yang, Jinjun Han, Hong Gao

AI总结:

MCPAgentBench通过现实任务和动态沙盒环境评估LLM代理在复杂工具调用中的能力差异,提供开源代码以促进工具使用能力研究。

摘要:

大型语言模型(LLMs)正日益成为自主代理,其通过模型上下文协议(MCP)利用外部工具被视为未来趋势。当前的MCP评估集存在依赖外部MCP服务和缺乏难度意识等问题。为解决这些限制,我们提出了MCPAgentBench,这是一个基于现实MCP定义的基准,旨在评估代理的工具使用能力。我们构建了一个包含真实任务和模拟MCP工具的数据集。评估采用动态沙盒环境,向代理提供包含干扰项的候选工具列表,从而测试其工具选择和辨别能力。此外,我们引入了全面的指标来衡量任务完成率和执行效率。在各种最新主流大型语言模型上进行的实验揭示了在处理复杂、多步骤工具调用时存在显著的性能差异。所有代码均在GitHub上开源。

英文摘要:

Large Language Models (LLMs) are increasingly serving as autonomous agents, and their utilization of external tools via the Model Context Protocol (MCP) is considered a future trend. Current MCP evaluation sets suffer from issues such as reliance on external MCP services and a lack of difficulty awareness. To address these limitations, we propose MCPAgentBench, a benchmark based on real-world MCP definitions designed to evaluate the tool-use capabilities of agents. We construct a dataset containing authentic tasks and simulated MCP tools. The evaluation employs a dynamic sandbox environment that presents agents with candidate tool lists containing distractors, thereby testing their tool selection and discrimination abilities. Furthermore, we introduce comprehensive metrics to measure both task completion rates and execution efficiency. Experiments conducted on state-of-the-art LLMs reveal significant performance differences in handling complex, multi-step tool invocations. All code is open-source at https://github.com/Brunestuder/MCPAgentBench.

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

↑