There's something easy to overlook when building AI agents with MCP:
A successful tool call doesn't necessarily mean a successful task.
The server responded.
The tool returned a result.
No exception was raised.
Everything looks fine.
Except the agent may have changed the wrong record, acted on outdated information, or completed only half of what the user actually requested.
And that's where things get interesting.
A Successful Response Is Not Proof of a Correct Outcome
Imagine an AI agent is asked to upgrade a customer's subscription.
It calls an MCP tool:
{
"tool": "update_subscription",
"arguments": {
"customer_id": "cus_123",
"plan": "pro"
}
}
The server responds:
{
"success": true,
"status": "updated"
}
The agent reports:
"Subscription successfully upgraded."
But what if:
- The customer ID was resolved incorrectly?
- The subscription was already scheduled for cancellation?
- The update changed the plan but not the billing configuration?
- Another process modified the subscription between the initial read and the update?
- The response confirms that the request was accepted, not that the final state is correct? The tool did exactly what it was designed to do.
The workflow still may have failed.
MCP Solves an Important Problem, But Not This One
MCP gives AI applications a standardized way to discover and interact with tools and resources.
That's valuable.
It reduces the need for every integration to invent its own communication pattern.
But interoperability and operational correctness are different problems.
A standardized tool interface doesn't automatically guarantee:
- Correct interpretation of user intent.
- Valid assumptions about the current state.
- Safe execution when conditions change.
- Verification of the final result.
- Recovery when a multi-step workflow partially succeeds. In other words, MCP can help an agent communicate with a system. It doesn't automatically make the agent a reliable operator of that system.
I Think We Need to Think in Terms of Execution Contracts
Instead of treating a tool call as a single isolated action, I'd like to see more workflows designed around four explicit stages:
1. Preconditions
What must be true before the action is allowed?
For example, the customer ID must be verified, the subscription must be active, and the requested plan must be available.
2. Execution
What exactly is the tool expected to change?
The operation should have a clearly defined scope, rather than relying on assumptions hidden inside the agent's reasoning.
3. Postconditions
What evidence proves that the intended state was actually reached?
Not just whether the API returned success, but whether a fresh read confirms the expected result.
4. Recovery
What happens if the operation succeeds partially, times out, or produces an ambiguous result?
Should the agent retry, inspect the current state, request human approval, or stop?
This distinction becomes especially important when several MCP tools are chained together.
A workflow can have five individually successful calls and still produce an incorrect final outcome.
The Missing Layer Might Be Verification
Here's the architectural distinction I keep coming back to:
User Intent
|
v
AI Agent
|
v
MCP Tool Discovery
|
v
Precondition Check
|
v
Tool Execution
|
v
Independent State Verification
|
+---- Verified ----> Report Outcome
|
+---- Uncertain ---> Investigate / Escalate
|
+---- Failed ------> Recovery / Stop
The important part is that verification should not simply repeat the tool's success message.
It should inspect the resulting state independently whenever possible.
For high-impact operations, the agent should also preserve evidence of what it checked, what it changed, and why it considered the result successful.
That creates something much more useful than a conversation transcript: an execution trail that can actually be audited.
One Question Worth Discussing
As MCP adoption grows, I suspect we'll spend less time asking whether an agent can access a tool and more time asking whether we can trust what it does with that access.
A tool returning success: true is a technical response.
A task being completed correctly is an operational guarantee.
Those are not the same thing.
Where do you think responsibility for verification should live: inside each MCP server, in the agent orchestration layer, or in a separate execution and validation layer?
I'm particularly interested in how people are handling this in real multi-tool workflows.
Top comments (11)
This is the same problem online shops have had forever, just with an agent in the middle now. The payment API says "success": true, everyone relaxes, and then the order email never went out or the stock didn't update because a webhook fired twice. The 200 response only tells you the request landed, not that the thing the customer wanted actually happened.
What's worked best for me is boring read-after-write: after the call, go fetch the record again and check the fields you care about, instead of trusting the response body. Plus an idempotency key on anything that touches money, so a retry can't do it twice.
Do you think that check belongs inside the MCP tool itself, or should the agent be the one verifying?
I'd put the critical verification inside the MCP tool, with the agent responsible for interpreting the result and deciding what to do next.
The tool should guarantee that a successful response means the operation was actually confirmed — not merely that the API accepted the request. The agent shouldn't have to remember to verify every payment or risk silently skipping that step. Read-after-write checks and idempotency keys are good defaults for anything involving money.
The agent still needs to handle cases where verification fails or the result is uncertain, but I'd rather make the safe path the default than rely on the agent to remember every safeguard. Especially when retries are involved.
Agreed, making the safe path the default is the right call. If every agent has to remember to verify, one of them eventually won't. Retries are where it gets scary, so idempotency at the tool level just removes a whole class of "it charged twice" bugs.
Exactly. I'd also separate verification from execution as much as possible.
A retry shouldn't mean blindly repeating the original operation. Ideally, the tool should first determine whether the previous attempt actually completed, then decide whether another execution is safe.
That's especially important when an agent loses the response after a successful operation. From its perspective, the request failed, but the external system may have already processed it.
Idempotency helps, but I think the real goal is making the tool reliable even when the agent has incomplete information about what happened.
The lost response case is the nasty one. A payment API times out, the agent thinks it failed, but the charge already went through on the other end. "Check before you retry" covers that, and blind retries are exactly what turn one bug into a customer complaint.
Exactly. A timeout tells you that the caller didn't receive a response, not that the operation failed. That's an important distinction, especially with payments or any action that can't safely be repeated.
I'd make the recovery path explicit: check the operation's status using an idempotency key or transaction reference before deciding whether to retry. If the result is still ambiguous, stop and escalate rather than guess. An agent should be able to recover from uncertainty without turning it into a duplicate action.
"Stop and escalate rather than guess" is the part most setups skip. A human looking at it for 30 seconds beats a duplicate charge every time. Good thread, I picked up a few things here.
Splitting this across two boundaries works best in practice:
{ "success": true }. The server owns domain invariants.I really like this split. The MCP server should guarantee that the operation respects the domain rules, while the orchestrator should make sure the intended outcome actually happened across the whole workflow.
The read receipts are an especially good idea. A successful tool call is easy to log, but having independent evidence of the resulting state makes debugging partial failures much less ambiguous. It also creates a useful audit trail when something goes wrong several steps later.
Basically, trust the server to enforce the rules, but never let the workflow confuse a successful response with a completed outcome.
A tool that returns success is a local signal. The only signal the user cares about is the workflow goal, so check the end state.
Exactly. A successful tool response only tells us that an operation completed, not that it produced the intended outcome. The distinction becomes especially important in agentic workflows, where several individually successful steps can still lead to an incorrect final state. I think end-state verification should be treated as a first-class part of the workflow, not an optional check after execution. The real definition of success is whether the user's goal was actually achieved.