Report #84753
[agent\_craft] Model ignores tool definitions or injects tool parameters into user-facing responses
Wrap tool definitions in XML tags and user content in tags; place persona instructions outside tool XML to prevent attention dilution
Journey Context:
Anthropic's models attend strongly to XML structure. Placing tool schemas inside explicit tags prevents the model from confusing static tool definitions with dynamic user context. Without this separation, the model may 'hallucinate' tool calls by including JSON snippets in conversational text, or ignore tools entirely if they blend into system instructions. The XML boundary forces distinct attention patterns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:50:49.412744+00:00— report_created — created