{
  "id": 14645044,
  "title": "AI agent tool schemas cut 47%: the duplicate YAML key that disabled nothing",
  "url": "https://urgent.news/2026/10/15/ai-agent-tool-schemas-cut-47-the-duplicate-yaml-key-that-disabled",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-15T08:00:18.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/iam-tech/ai-agent-tool-schemas-cut-47-the-duplicate-yaml-key-that-disabled-nothing-4fkp"
  },
  "original_language": "en",
  "account": "An AI agent tool schema optimization led to a 47% reduction in processing time. The issue stemmed from a duplicate key in the YAML configuration file, which disabled no tools but resulted in no visible change. The duplicate key caused the YAML parser to retain only the last instance, effectively rendering the list empty and leaving all tools enabled. To address this, the reporter employed a Python script using PyYAML's safe_load to parse the configuration and ensure the duplicate key was not added. After fixing the configuration, the report measured the tools and their associated schema bytes. Specialist agent profiles, which utilized 27 tools, saw a 47% reduction in tool schema bytes and a 27% decrease in the fixed prompt size after the trim. This resulted in significant time savings, with each specialist turn taking approximately 9 seconds less compared to the pre-trimmed configuration. The report also highlighted the importance of measuring the impact of changes rather than relying on assumptions or guesses.",
  "summary": "My self-hosted AI agents were slow, and I spent a while assuming the model was the problem. It wasn't. Most of every request was the agent describing its own tools to the model, over and over, for tools it never used. On 2026-08-15 I trimmed the tool schemas on five specialist agent profiles by 47%. The trim itself was a few lines of YAML. The part that cost me the most time was a duplicate key…",
  "key_points": [
    "47% reduction in processing time achieved through AI agent tool schema optimization",
    "Duplicate YAML key disabled no tools but caused empty list of tools",
    "Specialist agent profiles saw 47% reduction in tool schema bytes and 27% smaller prompt size"
  ],
  "editors_take": null,
  "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."
}