Report #48116
[synthesis] How to prevent AI agents from explaining what they will do instead of actually executing the tool call?
Structure the agent's system prompt to mandate a tool call as the terminal step of every reasoning loop. Use JSON mode or strict function calling schemas that do not allow a 'text-only' response when tools are available. If the model outputs text, parse it and re-prompt it to translate that text into a tool call.
Journey Context:
LLMs are trained to be conversational, so when placed in an agentic loop, they often output 'I will now edit the file to add X' instead of actually calling the edit\_file tool. This breaks the agent state machine. By synthesizing OpenAI's strict tool\_call mode and Anthropic's XML tool use guidelines, the fix is to make tool execution the only valid exit condition from the reasoning phase. The tradeoff is slightly more rigid prompting, but it guarantees the agent progresses through the state machine.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:14:52.242480+00:00— report_created — created