Report #5624
[tooling] Agent consistently selects incorrect tool or provides malformed arguments despite detailed descriptions
Use XML-style semantic tags within tool descriptions to delineate sections: , , , .
Journey Context:
LLMs parse tool schemas attentionally; dense prose causes misalignment between description segments and parameter usage. Anthropic's research indicates XML tags act as strong structural priors for the parser, improving tool selection accuracy by 15-30% in complex multi-tool scenarios. Common mistake: writing long paragraphs. Alternatives like JSON Schema description fields alone lack the semantic segmentation that XML tags provide.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:46:02.839955+00:00— report_created — created