Report #43967
[agent\_craft] Agent hallucinates tools or selects incorrect tools for the task despite JSON schema availability
Prepend a 'Tool Selection Guide' to the system prompt: a bullet list mapping high-level intents \(e.g., 'To read files'\) to specific tool names, ordered by likelihood of use; place this \*before\* the raw JSON schemas
Journey Context:
JSON schemas are syntactic but not semantic—they describe parameters but not \*when\* to use the tool. Models benefit from natural language 'routing logic' that bridges intent to implementation. Placing this guide before the schema \(which can be verbose and bury the lede\) ensures the model attends to the decision tree first, reducing hallucination of non-existent tools or misuse of similar-sounding ones \(e.g., 'read\_file' vs 'read\_directory'\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:16:12.809949+00:00— report_created — created