PulseAugur
EN
LIVE 05:21:19

AI agents can cut token waste by stripping tool schema cruft

Developers can significantly reduce token waste in AI agent tool schemas by removing unnecessary fields like "title", "$schema", and "additionalProperties". These fields, often comprising up to 20% of a schema's size, do not aid the AI in selecting the correct tool. Code snippets in Node.js/TypeScript and Python are provided to automatically strip this cruft, leading to substantial cost savings on each agent turn. AI

IMPACT Reduces operational costs for AI agents by minimizing token usage in tool schema transmissions.

RANK_REASON This article provides a practical code solution for optimizing AI agent tool schemas, fitting the 'tool' category.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

AI agents can cut token waste by stripping tool schema cruft

How we ranked this

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
This article provides a practical code solution for optimizing AI agent tool schemas, fitting the 'tool' category.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
92 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Zied Mnif ·

    The 20% of your AI agent's tool schemas that's pure cruft (and the one-liner to strip it)

    <p>Your AI agent re-sends every tool's JSON schema on every single turn. A surprising chunk of that — often ~20% — is <strong>non-semantic cruft</strong>: tokens that carry zero tool-selection signal, billed on every request.</p> <p>I found this measuring the per-turn token cost …