A developer reports their agent sends forty tool schemas on every turn when a router could exclude thirty-eight before the model sees a token, inflating costs. They are testing dynamic tool routing and schema pruning but face tradeoffs between recall and token cost, and ask how others decide which tools enter each prompt turn.
A Reddit post argues that agents failing to find tools is usually a harness bug: stuffing every MCP tool schema into context every turn wastes thousands of tokens and degrades selection accuracy. The converging fix is progressive discovery — a small search tool plus deferred tool names, loading full schemas on demand — already shipped in Claude Code's MCP Tool Search and OpenAI's deferred-loading tool search. Practitioners are asked how they keep MCP tool surface small without agents hallucinating missing tools.
A Reddit post argues that agents failing to find tools is usually a harness bug: stuffing every MCP tool schema into context every turn wastes thousands of tokens and degrades selection accuracy. The converging fix is progressive discovery — a small search tool plus deferred tool names, loading full schemas on demand — already shipped in Claude Code's MCP Tool Search and OpenAI's deferred-loading tool search. Practitioners are asked how they keep MCP tool surface small without agents hallucinating missing tools.
A Reddit user detailed trimming a 431-token support-bot system prompt to 310 tokens by removing duplicated rules, pretty-printed JSON, and filler politeness — cutting 28% of tokens with no rule or fact removed. The post argues such waste matters because system prompts are sent on every call and, in the author's test, made up 98–99% of request tokens.
A Reddit user detailed trimming a 431-token support-bot system prompt to 310 tokens by removing duplicated rules, pretty-printed JSON, and filler politeness — cutting 28% of tokens with no rule or fact removed. The post argues such waste matters because system prompts are sent on every call and, in the author's test, made up 98–99% of request tokens.
A discussion post describes how agents degrade as the tool list grows: schemas fill context and the model mis-calls or clumsily orders tools. The fix that holds up is giving the model a sandboxed code environment where it calls tools as functions, chaining and filtering them in code. This cuts token use per run and reduces wrong calls, at the cost of securing a sandbox running model-written code.
A discussion post describes how agents degrade as the tool list grows: schemas fill context and the model mis-calls or clumsily orders tools. The fix that holds up is giving the model a sandboxed code environment where it calls tools as functions, chaining and filtering them in code. This cuts token use per run and reduces wrong calls, at the cost of securing a sandbox running model-written code.
A developer released tool-prune, a dependency-free JS/Python library that prunes large tool-schema lists before the model call. It targets local 7B/8B models, where 50+ schemas degrade attention and cause distractor hallucinations, and avoids the extra LLM round-trip that in-band tool_search requires.
A developer released tool-prune, a dependency-free JS/Python library that prunes large tool-schema lists before the model call. It targets local 7B/8B models, where 50+ schemas degrade attention and cause distractor hallucinations, and avoids the extra LLM round-trip that in-band tool_search requires.
An arXiv paper introduces TurnCost, a tool for re-scoring coding-agent trajectories under alternative caching, pricing, compression, and routing policies. Analyzing 600 public trajectories, it argues observation-compression targets a secondary cost factor: turn count explains 84% of cost variance versus 4% for observation size, making unnecessary turns the larger unexamined efficiency opportunity.
An arXiv paper introduces TurnCost, a tool for re-scoring coding-agent trajectories under alternative caching, pricing, compression, and routing policies. Analyzing 600 public trajectories, it argues observation-compression targets a secondary cost factor: turn count explains 84% of cost variance versus 4% for observation size, making unnecessary turns the larger unexamined efficiency opportunity.