Report #98298
[agent\_craft] Tool calls fail or model ignores available tools despite correct schema
Put tool definitions at the top of the system prompt, mirror the exact JSON schema the API expects, and end with an explicit 'If a tool can answer the user, you MUST call it' instruction.
Journey Context:
Models do not automatically know they have tools unless reminded. Hiding tool specs in the middle of a long system prompt lowers recall, especially when many tools compete for attention. Placing them first and adding a mandatory-use clause cuts tool-miss rates. The alternative—relying on the API's native tool schema alone—works for simple cases but fails when the prompt also contains style instructions, role definitions, or many candidate tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:44:01.701783+00:00— report_created — created