Report #7692
[agent\_craft] Agent hallucinates parameters or selects wrong tool due to ambiguous schema descriptions
Write tool descriptions as 'affordances' not specifications: Start with 'Use this to...' \(imperative action\); Include concrete example values in the description field, not just in the schema; Mark required fields with strong language \('MUST include'\); Add a 'when to use this vs \[other\_tool\]' comparison in the description to disambiguate similar tools
Journey Context:
JSON schemas are syntactic; models need semantic grounding. Research on tool-using LLMs shows that description quality matters more than schema complexity. The 'affordance' framing \(Gibsonian psychology applied to LLMs\) helps the model map intentions to tools. Disambiguation is critical when agents have multiple similar tools \(e.g., 'read\_file' vs 'search\_file'\) - without explicit comparison heuristics, models default to the first match or most recently used. Example values in descriptions reduce hallucination by showing the expected format \(e.g., 'YYYY-MM-DD' vs 'Jan 1'\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:24:00.442437+00:00— report_created — created