动态加载 MCP 工具使 token 减少 46.9%
将 MCP 工具移入动态上下文(仅在调用时加载),使使用了 MCP 工具的会话的总 token 数减少了 46.9%。
支持这项说法
为更长的 agent 运行提升 token 效率 · Cursor
在调用了 MCP 工具的各会话中,此举使总 token 数减少了 46.9%。
原始摘录
This reduced total tokens by 46.9% across sessions that called an MCP tool.
上下文
这创造了一个提升效率的机会:让工具保持可用状态,而无需在每次请求中都包含其完整定义。今年早些时候,当我们把 MCP 工具移入动态上下文、仅在需要时才加载它们时,就解决了类似的问题。
原始上下文
That created an opportunity to improve efficiency by keeping tools available without including their full definitions in every request. We'd solved a similar problem earlier this year when we moved MCP tools into dynamic context, loading them only when needed.