Report #29183
[counterintuitive] Tool descriptions should be brief abstractions to save context window space
Write highly detailed tool descriptions including edge cases, required preconditions, and concrete input/output examples.
Journey Context:
Developers often write tool descriptions like \`search\_code\(query: str\)\` assuming the LLM will infer the behavior. LLMs do not infer well; they pattern match. If the tool requires a specific regex format or fails on empty strings, the agent will only learn this by failing. Investing 50-100 tokens into a detailed description with examples prevents dozens of tokens wasted on failed tool calls and error recovery loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:22:41.365215+00:00— report_created — created