AI Agent Says It Sent the Email but Never Called the Tool
An AI agent's reply and its actions are separate parts of the API response, so 'I sent the email' proves nothing. An action happened only if the response contains a tool call: a tool_use block with stop_reason tool_use on Anthropic, a function_call output item on OpenAI, a function_call step on Gemini. Gate on that record in code, and have code write the confirmation from the ID the tool returned.
When an AI agent says "I've sent the email" and nothing went out, the model wrote a sentence and did not call the tool. The reply text and the tool call are separate parts of the API response. An action happened only if the response contains a call: a tool_use content block with stop_reason: "tool_use" on Anthropic, an output item with type: "function_call" on OpenAI's Responses API, or a step with type: "function_call" on Gemini's Interactions API. If that item is missing, nothing was sent, booked, or refunded.
Most write-ups of this problem say the model lies and tell you to add a verification layer or signed receipts. You can skip the psychology. The check is a few lines of code against a field you already receive, and the popular shortcut of forcing a tool call does not work on the newest Claude models.
Why can the model say it did something it did not do?
Every provider's default tool setting is auto. Anthropic describes it as letting Claude "determine whether to call any provided tools." OpenAI's wording is blunter: in auto mode the model can "call zero, one, or multiple functions."
Zero is a legal outcome. On that path the model produces ordinary text, and after "please send the invoice to Dana," the most natural text is a confirmation. Nothing in the API ties the sentence to an event. The text can even include a made-up message ID.
The reverse also holds. With auto, Claude often writes a short line before the call, so text and a tool_use block can arrive in the same response. Text tells you nothing in either direction. Only the call item does.
Where each API records a real tool call
This is the map as of December 2026, from each vendor's tool documentation.
| API | What a real call looks like | What a claim with no call looks like | Can you force a call? |
|---|---|---|---|
| Anthropic Messages API | stop_reason is tool_use, with one or more tool_use blocks carrying id, name, input | stop_reason is end_turn and the content has no tool_use block | tool_choice types any and tool, but six current models return a 400 (below) |
| OpenAI Responses API | An output entry with type: "function_call", a call_id, a name, and JSON arguments | The output array has a message and no function_call entry | tool_choice: "required" calls one or more functions |
| OpenAI Chat Completions | finish_reason is tool_calls and the message has a tool_calls array | finish_reason is stop with text content | Same parameter. GPT-6 Astra and GPT-6.1 Sol need the Responses API for tools |
| Gemini Interactions API | A step with type: "function_call", a name, and arguments | No function_call step among the steps | tool_choice set to any in generation_config |
| n8n AI Agent node | With Return Intermediate Steps on, the output lists each tool step the agent took | The steps list is empty and output still reads like success | The node's documented options do not include one |
If you use n8n, turn on Return Intermediate Steps for every agent that can change something. Without it the node hands you one string, which is the exact thing you cannot trust.
Three failures that look the same to the customer
The customer sees "Done!" in all three cases. They need different checks, and most advice blends them together.
- The tool was never called. There is no call item in the response. This is the case in the title, and it is caught entirely inside your own code, before anything reaches the customer.
- The tool was called and failed, and the model smoothed it over. The call item exists and the result was an error or an empty body. Make the failure loud in what you send back. Anthropic's
tool_resultblock has anis_errorflag for this. On the other APIs, return a plain string such asERROR: mailbox rejected the message. Do not tell the user it was sent. - The tool was called, returned success, and nothing happened. A 200 from an email API means accepted, not delivered. No model check catches this. You need the side effect: the delivery event, the calendar entry read back, the refund visible in the payment system.
Work them in that order. The first is the cheapest to close, because the evidence is already in the response you are holding.
Why forcing the tool call is not the fix
The first idea everyone has is to make the call mandatory. It has two problems.
The first is support. As of December 2026, Anthropic lists Claude Fable 5.2, Mythos 5.2, Opus 5.5, Sonnet 5.5, Fable 5.1, and Mythos 5.1 as models where tool_choice types any and tool return a 400 invalid_request_error. The message reads tool_choice: type "tool" and "any" are not supported for this model. Haiku 5.5 and Opus 5 still accept a forced call, and skip thinking when you use one. We covered the other settings that fail the same way in what breaks when you change the AI model.
The second is that a forced call applies to the whole request. An agent told it must call a tool cannot answer "what are your hours?" in plain text, and it cannot write its closing reply after the tool result either, unless you switch the setting back for that request. Leave it on in a loop and you have built the runaway described in how to stop an agent loop.
Forcing is the right tool for a single-purpose step: a classifier that must emit one function call, an extractor with one schema. For a conversational agent, leave tool_choice on auto and gate on the result.
Your chat history may be teaching it to skip the tool
A pattern shows up in n8n forum reports: the agent calls the tool on the first turns of a conversation and fakes a later one. The usual advice is to rewrite the tool description. Check the memory first.
Some chat memories store a turn as two strings, what the user said and what the assistant replied. Replay that on the next turn and the model reads a transcript in which the assistant answered "Done, I've booked it" three times with no tool call anywhere in sight. That is a worked example of confirming without calling, repeated. This is our reading of the mechanism, not a vendor statement. It is cheap to test: run the same conversation with memory disconnected and see whether the calls come back.
n8n had a concrete version of this. Issue 41554 on the n8n repository, opened October 20, 2026, reports that AI Agent V3 saved only the last tool-calling round of a turn to chat memory, with the stated effect that on the next turn "the model cannot see the tools it already called." The fix was merged on November 12, 2026, so check that your version includes it. Before the fix, earlier rounds are missing from what the agent remembers.
Two repairs work. Store the call and its result alongside each turn, so the history shows the action next to the claim. Or, if you compress history, write the stored line as a record: send_email returned id msg_8841 at 14:02, in place of the model's own "I've sent it."
The gate we put in front of every agent that can act
None of this needs a second model. It is ordinary code between the model and the customer.
- Decide from the call items. After each model response, list the tool calls it contains. Your code runs them. The text is never treated as evidence of anything.
- Make every action tool return an ID. A message ID, a booking reference, a refund number. A tool with no ID to return gives you nothing to verify later.
- Let code write the confirmation. The customer-facing line "Booked. Reference A-1042." comes from a template filled with the tool's result. The model can write the friendly sentence around it. A reply without a reference is, by your own rule, not a confirmation, and you can tell customers so.
- Catch the claim with no call. If a turn ends with zero call items and the text says sent, booked, refunded, cancelled, or updated, hold the reply. Send one follow-up message: "No tool was called in your last turn. Call the tool, or tell the user you could not complete it." If the second attempt also has no call, hand the conversation to a person. The word match is crude and it only has to catch the common case, because step 3 already keeps a bare claim from passing as a confirmation.
- Reconcile the actions that matter. For money and anything hard to undo, read the system of record back after the call, and put the riskiest tools behind a person. n8n supports human review on specific tools, and this guide covers where to draw that line.
Here is how it plays out. A scheduling agent replies "You're all set for Thursday at 2:00" and the response comes back with stop_reason: "end_turn" and no tool_use block. Step 4 holds the reply and asks again. The second response contains a book_appointment call, your code runs it, the calendar returns A-1042, and the customer gets a confirmation with that reference. Without the gate, the customer shows up Thursday to an empty calendar. The example is illustrative, and the field values are the ones Anthropic documents.
What to do next
Pull the last 50 conversations where your agent told someone an action was complete. For each one, find the tool call in the raw response or the execution log. Count the ones with no call. If that number is above zero, add steps 1 through 4 before you touch the prompt, because a better prompt lowers the rate and the gate removes the consequence.
If the agent also picks the wrong tool when it does call one, that is a separate problem with its own fix, covered in why an AI agent calls the wrong tool. We build agents with these gates as part of our custom software and AI assistant work, and if yours is confirming things it never did, send us one failing transcript and we will tell you which of the three failures it is.
Frequently Asked Questions
SOURCES & CITATIONS
- Define tools — Anthropichttps://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools
- Function calling — OpenAIhttps://developers.openai.com/api/docs/guides/function-calling
- Function calling — Googlehttps://aistudio.google.com/docs/function-calling
- AI Agent (V3) saves only the last tool-calling round of a turn to chat memory — n8n on GitHubhttps://github.com/n8n-io/n8n/issues/41554
About Alexey Yushkin
Alexey is the founder of GENERAL INFORMATICS LLC. He designs and ships AI and automation systems for businesses and operators across the US.
Related reading
Want this kind of system in your business?
We build practical AI and automation systems for operators. Send us your current workflow and we will show you what to automate first.
