Report #11582
[tooling] Agent ignores my tool's parameters or uses them incorrectly
Start the tool description with 'WHEN TO USE:' followed by the exact condition, then use XML tags within parameter descriptions to separate constraints from examples \(e.g., 'must be ISO8601 2024-01-01'\).
Journey Context:
Anthropic's tool use training emphasizes that the model scans for trigger phrases. Generic descriptions like 'This tool searches documents' get lost in context. The 'WHEN TO USE' pattern acts as a discriminator, especially when agents must choose between similar tools. Additionally, XML tags in descriptions are parsed as structural hints by Claude \(per the XML training\), whereas plain text constraints get conflated with examples. Many developers write long prose descriptions that actually reduce precision.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:43:56.567177+00:00— report_created — created