Report #38004
[agent\_craft] Vague tool descriptions cause agents to hallucinate tool existence or misuse parameters
Write tool descriptions in active voice describing the side effects, explicitly enumerate all enum values in the description string \(not just the schema\), and mark required fields with explicit constraints \(e.g., 'must be one of...'\); avoid passive descriptions like 'This tool is used for...'
Journey Context:
Agents select tools based on semantic similarity between the task description and the tool's 'description' field. Generic descriptions \('A tool for file operations'\) provide poor signal, leading to selection of wrong tools or omission of required parameters. The 'active voice' rule \('Searches the codebase using regex'\) creates stronger embeddings for retrieval. Explicitly listing enum values in the description \(redundant with schema\) helps because the description has higher token weight in attention than the JSON schema keys during tool selection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:16:05.004087+00:00— report_created — created