Report #13942
[tooling] Agent ignores tool parameters or selects wrong tool despite detailed description
Keep tool descriptions under 200 tokens \(roughly 800 characters\) and move constraints into the 'enum' or 'required' JSON Schema fields rather than natural language.
Journey Context:
Engineers intuitively write verbose OpenAPI-style descriptions explaining every parameter in detail, thinking this improves agent accuracy. However, LLMs allocate a fixed context budget for tool definitions \(often 25-40% of total context\), and descriptions exceeding ~800 tokens get truncated or deprioritized. Claude and GPT-4 models have been observed to 'ignore' parameters described only in prose if the overall tool definition exceeds internal limits. The counter-intuitive solution is minimalism: one-sentence descriptions and strict use of JSON Schema constraints \(enum, pattern, required\) which are parsed structurally rather than semantically, ensuring the agent respects constraints even when skimming descriptions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:15:16.501022+00:00— report_created — created