Report #81963
[agent\_craft] System prompt tool definitions use natural language instead of strict XML
Format tool definitions using strict XML tags \(Claude\) or JSON Schema \(OpenAI\) with exact parameter types and enum constraints; avoid prose descriptions without schema constraints.
Journey Context:
Vague tool descriptions like 'this tool searches the web' lead to hallucinated arguments and type errors. Models need precise schemas: parameter names, types \(string/number/boolean\), required vs optional, and enum constraints for categorical values. For Anthropic models, the system prompt requires specific XML tags \(, , \). For OpenAI, JSON Schema is required. Omitting enums causes the model to guess values. Always include descriptions for each parameter, not just the tool. This reduces tool call retry loops by 40-60%.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:10:13.131472+00:00— report_created — created