Field note: what your OpenAI agent sees when a tool call fails A developer testing the OpenAI Agents SDK (0.26.0) found that when an MCP tool call fails, the SDK by default does not halt the run but instead feeds the model the generic message "An error occurred while running the tool." Using a fault-injected refund tool over MCP and a scripted model that retries on failure, the testbench showed the model has no way to know whether the side effect committed, so safety must come from idempotent tool design (one refund per order) rather than from the error message. The testbench and example are released as open source under MIT and run locally without an API key. A refund tool times out after the refund went through. Here's what the OpenAI Agents SDK tells the model, and why that decides whether your customer is refunded twice. In my last field note I showed that when a tool call breaks, the agent often can't tell whether the action happened: the same error comes back whether the refund went through or not. This time I wanted to know what one popular framework does with that moment. I wired the OpenAI Agents SDK to the same testbench: a fake refund tool over MCP, a fault injected on purpose, and a local database that counts how many refunds really happened. When an MCP tool call fails, for example because the client times out, the OpenAI Agents SDK 0.26.0 does not stop the run. By default it turns the failure into the tool's output, and the model reads this: An error occurred while running the tool. That's the whole message. It doesn't say whether the request reached the server, whether the refund was committed, or whether a retry is safe. That's deliberate: the SDK's default leaves the exception out, so internal details don't leak into the model's context. I checked the SDK's source: default tool error function returns exactly that sentence, and passing failure error function=None makes the error raise out of the run instead. So the model has to decide what to do with almost no information. I ran the agent with a scripted model, so there was no API key and the result was the same every time. Its rule was simple: if the tool call fails, call it again. The fault let the refund commit, then held the reply until the client timed out. refund-