Report #103505
[agent\_craft] Model calls wrong tool or invents tool names
Mirror every tool's name, description, and parameter schema in the system prompt using the same format the model consumes \(XML tags for Claude, JSON Schema for GPT\). Do not rely solely on the API tools/functions array.
Journey Context:
Tool-use APIs pass schemas out-of-band, but models attend more strongly to prompt text. When schemas only live in API metadata, the model may hallucinate tool names, ignore required parameters, or call a tool that was never defined. The duplication feels redundant, but it is the difference between reliable invocation and random behavior. Many builders skip this because the API accepts tools without prompt text; that is the common mistake.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:30:33.262259+00:00— report_created — created