arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14334cs.AIcs.CLcs.SE
收藏

在MCP中,哪些元数据对LLM工具选择至关重要?来自受控因子级干预的证据

Which Metadata Matters for LLM Tool Selection in MCP? Evidence from Controlled Factor-Level Interventions

University of Delaware(特拉华大学);University of South Florida(南佛罗里达大学)

Xiaofan Li, Fengchun Qiao, Xing Gao

AI总结:

该研究通过对5个LLM和5个任务的受控元数据干预,发现MCP中参数模式对工具选择影响最大,描述次之,名称影响较弱,模式设计和工具排序会影响工具选择。

摘要:

在模型上下文协议(Model Context Protocol, MCP)系统中,大型语言模型(LLM)从元数据而非工具的实现中选择工具。名称和描述总结了工具的功能,而参数模式(parameter schema)则指定了工具接受的字段及其组织方式。我们对367174个MCP工具的元数据进行分析,发现功能相似的工具之间存在显著的模式差异,其中许多工具共享名称和相似描述,但暴露不同的参数模式。这提出了一个关键问题:在任何调用发生前,参数模式的差异是否会影响工具选择?我们通过对五个LLM和五个任务进行受控元数据干预来研究该问题,每次比较仅改变一个元数据因子(服务器名称、工具名称、描述或参数模式),同时保持其他因子固定。我们平衡工具位置并使用条件逻辑回归估计位置调整后的效应。研究发现:(1)参数模式变化在测试的干预中产生最大且最一致的选择偏移,模型倾向于偏好单独的顶层参数而非分组或复合形式;(2)解释参数的描述也倾向于增加选择,而名称效应较弱且一致性较低;(3)针对性比较显示,模式效应取决于特定参数名称以及请求表示相同信息的方式,当仅有一种模式满足显式请求要求时,尽管存在位置偏好,所有五个模型都会选择兼容的工具。这些结果表明,参数模式不仅影响工具的调用方式,还影响工具是否被选择。对于MCP开发者和评估者而言,即使功能不变,模式设计和工具排序也会影响调用哪个实现。

英文摘要:

In Model Context Protocol (MCP) systems, LLMs select tools from metadata rather than from their implementations. Names and descriptions summarize what a tool does, while the parameter schema specifies the fields a tool accepts and how they are organized. Our analysis of metadata for 367,174 MCP tools reveals substantial schema variation among functionally similar tools. Many of these tools share names and similar descriptions but expose different parameter schemas. This raises a key question: can parameter-schema differences influence tool selection before any call is made? We study this question through controlled metadata interventions across five LLMs and five tasks. Each comparison changes exactly one metadata factor (server name, tool name, description, or parameter schema) while keeping the others fixed. We balance tool positions and use conditional logistic regression to estimate position-adjusted effects. We find that: (1) parameter-schema changes produce the largest and most consistent selection shifts among the tested interventions. Models tend to favor separate top-level parameters over grouped or composite forms. (2) Descriptions that explain parameters also tend to increase selection, while name effects are weaker and less consistent. (3) Targeted comparisons show that schema effects depend on the specific parameter names and on how the request represents the same information. When only one schema satisfies an explicit request requirement, all five models select the compatible tool despite position preferences. These results show that parameter schemas influence not only how tools are called, but also whether they are selected. For MCP developers and evaluators, schema design and tool ordering can therefore affect which implementation is invoked even when functionality is unchanged.

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

↑