Tool-Schema Bloat
Upfront context consumption caused by oversized or granular tool catalogs.
Picture a diner where you can't order until you've read the whole menu out loud: 40 pages, every side dish, every allergen footnote, the history of the house sauce. You only wanted coffee. Most people would skim to the drinks page. An agent can't skim. It reads every token it is given, and the tool catalog is the first thing it is given.
Every tool an agent can call arrives as a definition: a name, a description and a JSON schema for its parameters. Those definitions usually sit in the context window from the first turn to the last, whether the agent uses them or not. When a catalog grows large, or splits one job across many near-identical tools, it eats context before any work starts. The Guide calls that tool-schema bloat.
In practice
A team wraps its ticketing API for an agent, one tool per REST endpoint. Here is one of them:
{
"name": "get_ticket_comments_v2",
"description": "Retrieves comments for a ticket. Supports pagination via page and per_page. Use include_internal to include internal notes. Deprecated fields: author_name.",
"parameters": {
"ticket_id": { "type": "string" },
"page": { "type": "integer" },
"per_page": { "type": "integer" },
"include_internal": { "type": "boolean" }
}
}
That's about 400 characters, roughly 100 tokens, and it's one of the shorter ones. Real definitions with enums and nested objects often run two or three times that. At 60 endpoints, an illustrative catalog lands somewhere between 6,000 and 15,000 tokens, read at the start of every session. Notice also the _v2 suffix. Somewhere in the same catalog sits get_ticket_comments, and the agent has to guess which one is current.
Why it matters
Bloat costs in three ways. First, money and latency: those tokens are processed on every request. Second, attention: a catalog of 60 tools competes with the user's actual request for the agent's focus. Third, wrong choices: a pile of similar names (get_ticket, fetch_ticket, get_ticket_v2) invites the agent to pick the wrong one, which the Guide calls context confusionLexicon · 23Context ConfusionIrrelevant schemas or documents misleading the agent's tool selection.. All of the bloat lands in the agent's total context loadLexicon · 13Context LoadTotal tokens competing for attention inside the context window., the tokens competing for its attention, before the agent has done anything.
What to do about it
H-07 Local Handles & Progressive Disclosure keeps a small core tool belt in context and loads specialized toolsets only when the agent enters that area. H-08 Compositional Accelerators replaces many narrow tools with a few expressive ones, so query_tickets with filters covers what ten endpoint wrappers did. H-06 Deterministic Envelopes & Schema Uniformity trims the rest, because when every tool shares the same parameter names and pagination, the descriptions can be short.
Related
- The round-trip taxLexicon · 39Round-Trip TaxTurn latency and overhead from chaining overly atomic tool calls. usually arrives with bloat: one tool per endpoint means one call per tiny step.
- The teaching cost lawLexicon · 36The Teaching Cost LawRecurring per-session onboarding tax paid by any out-of-distribution tool. treats each definition as a lesson. Bloat is that tax paid upfront for tools the session may never touch.
- Literal exhaustive readingLexicon · 10Literal Exhaustive ReadingIngesting every returned token without human visual skimming. is why bloat costs anything at all: the agent can't skim past the tools it doesn't need.