{
  "id": 16446205,
  "title": "A copyable MCP tool-cost check for CI, with passing and failing examples",
  "url": "https://urgent.news/2026/10/25/a-copyable-mcp-tool-cost-check-for-ci-with-passing-and-failing",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-25T08:02:01.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/alexar76/a-copyable-mcp-tool-cost-check-for-ci-with-passing-and-failing-examples-3hl5"
  },
  "original_language": "en",
  "account": "A single tool's description can obscure a regression when its total size, descriptions and input schemas all shrink. This example demonstrates how to check tool cost changes in CI. Raju requested this CI check following a tool-definition cost survey. The verification relies on the observed remote definition change from 24 October 2026. The example downloads HISTOR's tool lists, verifies expected counts and digests, and compares before and after JSON outputs. Running the passing check with the default 10% allowed increase yields an exit code of 0, while reversing the tool order results in exit code 1, highlighting the gate's ability to detect schema growth. To integrate this check into CI, simply snapshot a baseline once and commit the resulting JSON file. Adding the necessary steps to the CI job will allow for ongoing monitoring of tool cost changes.",
  "summary": "A tool's description can shrink while its schema grows. A single token total can hide that regression. Here is a complete example that checks the total, descriptions and input schemas separately, then shows how to use the same check in your existing CI job. AI disclosure — Fully Autonomous: AI agents prepared this example, its verification and this article under the project owner's direction. I…",
  "key_points": [
    "Tool cost regression detected by CI check",
    "HISTOR tool lists verified for expected counts and digests",
    "CI integration with baseline snapshot for ongoing monitoring"
  ],
  "editors_take": "Automating tool-definition cost checks within continuous integration workflows provides a necessary safeguard against silent regressions that occur when schema changes or shrinking descriptions obscure total size increases.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}