Report #95562
[agent\_craft] System prompt tool definitions ignored or misformatted causing hallucinated tool calls
Use XML tags \(Claude\) or strict JSON schema \(GPT\) in distinct system sections; never mix formats in one prompt
Journey Context:
Agents often fail when tool schemas are buried in narrative text or when OpenAI JSON schema is fed to Anthropic models expecting XML. The rigid separation allows the tokenizer to recognize tool boundaries deterministically, preventing argument hallucinations and syntax errors that occur when the model confuses description text with invocation format.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:58:36.955053+00:00— report_created — created