返回首页

对比阅读

对比阅读:Too Many Agent Tools Lead to Mistakes; Dynamic Pruning Is the Engineering Divide 与 Agent 工具越多越容易选错,动态裁剪正在成为工程分水岭

AEN
AnthropicMCPOpenAI·

Too Many Agent Tools Lead to Mistakes; Dynamic Pruning Is the Engineering Divide

When the number of tools available to an Agent grows from 6 to 30, the probability of selecting the wrong tool, context costs, and retry expenses often rise together. Our judgment is that the main bottleneck in Agent engineering is shifting from “whether the model is smart enough” to “whether the system puts the right tools in front of the model at the right time.”

What this is

This is “tool-surface governance”: which tools the model can see at a given moment, along with their names, descriptions, and parameter definitions. MCP (Model Context Protocol) is a common protocol that lets Agents connect to tools and data sources, but it does not manage the number of tools for users.

The article proposes “three-way tool-surface pruning”: prune by task, using tags to narrow the candidate tool set; prune by hierarchy, presenting a flat, short catalog first and loading the full parameter definitions only after a match; and prune by feedback, adjusting tool weights according to whether calls succeed or fail. Its accompanying Python script demonstrates this logic and provides a rough token comparison; it is not a real model-accuracy test.

Notably, the article cites Anthropic’s engineering experience that once roughly 30–50 tools are available, selection accuracy may begin to decline. In a typical configuration, 58 tools can consume around 55,000 tokens. This means “connecting more” does not equal “using them better.”

Industry view

The value of tool pruning goes beyond saving money. Keeping irrelevant tools out of the context window reduces the chance that similar descriptions will distract the model, and makes it easier for enterprises to audit why a particular call occurred. For teams already connected to GitHub, Jira, Notion, databases, and other systems, this approach can act directly on the tool-registration layer without rewriting business processes.

The risks are equally clear. If dynamic loading omits a genuinely necessary tool, the Agent shifts from “making the wrong selection” to “having no path forward.” If failure-based downweighting relies on biased feedback data, it may also suppress valuable tools for a long time before they have been validated. The article flags nested catalogs as a risk because multiple layers transfer the burden of judgment from tool descriptions to path selection.

In addition, the article’s token estimates use text length as an approximation, and its scripted selector relies on deterministic rules; neither can replace real model evaluation. Enterprises still need to use their own task sets to observe tool hit rates, call success rates, response times, and actual costs. They should not treat the example figures as universal benchmarks.

Impact on regular people

For enterprise IT: The more Agent tools an enterprise connects, the more it needs a tool catalog, group permissions, and a call-feedback mechanism. The governance focus will move from model parameters to the tool-registration and scheduling layer.

For individual work: Office assistants will display fewer irrelevant features and will be more likely to call systems around specific tasks. For knowledge workers, clearly stating the scenario in a prompt may matter more than memorizing tool names.

For the consumer market: Consumers may not directly see the pruning logic, but applications may improve in responsiveness, call accuracy, and subscription cost. Fewer tools and cleaner context are generally foundations of a more stable product experience, although they do not guarantee that every Agent becomes smarter.

来源: juejin.cn
BZH
AnthropicMCPOpenAI·

Agent 工具越多越容易选错,动态裁剪正在成为工程分水岭

当 Agent 可调用的工具从 6 个增至 30 个,选错工具的概率、上下文成本和重试费用往往一起上升。文章给出的判断是:Agent 工程的主要瓶颈正从“模型够不够聪明”,转向“系统有没有把合适的工具及时放到模型面前”。

这是什么

这里说的是“工具面治理”:某个时刻,模型能看到哪些工具,以及这些工具的名称、描述和参数定义。MCP(Model Context Protocol,模型上下文协议)是一套让 Agent 连接工具和数据源的通用协议,但不负责替用户管理工具数量。

文章提出“工具面三收”:按任务收,通过标签缩小候选工具范围;按层级收,界面先给扁平短目录,命中后再加载完整参数定义;按反馈收,根据调用成功或失败调整工具权重。其附带的 Python 脚本用于演示这套逻辑和粗略的 token 对照,并非真实模型准确率测试。

值得留意的是,文章援引 Anthropic 的工程经验称,可用工具超过约 30—50 个后,选择准确率可能开始下降;典型配置中,58 个工具可占用约 5.5 万 token。这说明“接得多”不等于“用得好”。

行业怎么看

工具裁剪的价值不只是省钱。减少无关工具进入上下文,可以降低模型被相似描述干扰的概率,也让企业更容易审计一次调用为何发生。对已经接入 GitHub、Jira、Notion、数据库等系统的团队,这套方法能直接作用于工具注册层,而不必重写业务流程。

但风险也很明确。动态加载若漏掉真正需要的工具,Agent 会从“误选”变成“无路可走”;失败降权如果反馈数据有偏,也可能长期屏蔽尚未被验证但有价值的工具。嵌套目录被文章列为风险,因为多层结构会把判断负担从工具描述转移到路径选择。

此外,文中的 token 估算采用文本长度近似,脚本选择器也是确定性规则,不能替代真实模型评测。企业仍需用自己的任务集观察工具命中率、调用成功率、响应时间和实际费用,不能把示例数字当成通用基准。

对普通人的影响

对企业 IT:企业接入的 Agent 工具越多,越需要建立工具目录、分组权限和调用反馈机制。治理重点将从模型参数,转向工具注册与调度这一层。

对个人职场:办公助手将更少展示无关功能,也更容易围绕具体任务调用系统。对知识工作者而言,提示是否说清场景,可能比记住工具名称更重要。

对消费市场:消费者未必直接看到裁剪逻辑,但应用响应速度、调用准确率和订阅成本可能改善。工具更少、上下文更干净,通常是产品体验更稳定的基础,但并不保证所有 Agent 都更聪明。

来源: juejin.cn