PulseAugur
实时 00:08:10
English(EN) Your MCP tool surface has a token bill — here's how to read it

AI工具的暴露会产生隐藏的令牌成本,影响准确性

将工具暴露给AI模型(例如在MCP服务器中)会在每次API调用时产生显著的令牌成本。此成本的产生是因为工具的名称、描述和JSON模式会反复发送到模型的上下文中。工具数量越多,不仅会增加令牌账单,还会对模型选择正确工具的准确性产生负面影响。为了解决这个问题,开发了一个新的CLI工具,使开发人员能够看到这些隐藏的成本。 AI

影响 开发人员需要注意暴露AI工具相关的令牌成本,因为它会影响费用和性能。

排序理由 该项目讨论了在AI系统(MCP服务器)中管理工具的技术细节,这是一个产品/基础设施问题。

在 dev.to — MCP tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

报道来源 [1]

  1. dev.to — MCP tag TIER_1 English(EN) · Boris Pan ·

    您的 MCP 工具界面有 token 账单 — 这是如何读取它的

    <p>If you're building MCP servers, here's a cost that's easy to miss: <strong>Every tool you expose is re-sent to the model on every call.</strong></p> <p>Not once at startup, every. Single. Turn. The tool's name, its description, and its full JSON input schema all go into the mo…