How do we know an agent actually did what it says?
A tool call is a contract.
Making autonomous workflows inspectable, bounded, and recoverable.
An agent that can call tools is a distributed system whose steps can fail independently.
A reliable agent distinguishes what it intended from what the tool actually confirmed.
An agent has an idea. A tool has consequences.
Consider a research assistant that decides to search papers, save citations, update a spreadsheet, and send a summary. Each step crosses a boundary: the model proposes arguments, a tool executes an operation, and the world may change.
If the assistant only reports a cheerful final sentence, nobody knows whether the spreadsheet updated, whether a citation came from a real source, or whether the email was actually sent. Reliability starts at the tool boundary, not at the model's prose.
Design the contract
A good tool contract specifies accepted inputs, authorization scope, side effects, possible errors, idempotency or deduplication behavior, and observable output. For an external write, distinguish requested, acknowledged, and verified. A successful API response may confirm acceptance without proving the final external state, so high-impact actions may need read-after-write verification.
The system should validate arguments with types and constraints; narrow access to the minimum permissions; require user confirmation where an action is irreversible or high impact; store operation IDs or receipts; and make retries safe. A second attempt after a timeout may duplicate an external action unless the tool supports idempotency, the client uses a stable deduplication key, or the workflow first checks what already happened.
A concrete failure sequence
The model requests “add task X.” The API performs the write but the response times out. The agent sees only an error and retries. Without a stable idempotency key, the task appears twice. The model did not hallucinate; the orchestration logic failed.
The remedy is not simply a better prompt. It is explicit workflow state, well-defined delivery semantics, verification, retries that are safe by construction, and—when necessary—compensating or recovery actions. This is where agent engineering resembles distributed/backend engineering more than a conversation demo.
Evaluate the full workflow
Track end-to-end task completion, tool success, duplicate or unauthorized actions, invalid arguments, verification failures, time to recovery, evidence fidelity, and how uncertainty is surfaced to the user. A model's ability to choose a reasonable action is only one layer of an agent's real effectiveness.
My rule
An agent should make it easy for a human to ask: What did you intend, what actually happened, and how do you know? If the system cannot answer, it is difficult to trust the final output.