Skip to main content
HTTP status: 400

Error message

When this error occurs

The platform runs some of the model’s tool calls itself and leaves the rest to you:
  • MCP calls ({alias}-{tool}) and harness tools (bash, file_read, file_write, sleep, job_monitor, wait_for) run on the platform, which stores their results. They never appear in pending_tool_calls.
  • Caller-declared tools from tools[] pause the run at requires_action, and you post their outputs as tool_outputs on the next run.
This error means a tool_outputs[].tool_use_id is on the latest assistant turn but isn’t in the pending_tool_calls of the run that wrote it. There’s nothing for you to contribute.

How to fix

Copy the ids from the pending_tool_calls list of GET /agents/runs/{id} rather than deriving them from the message stream or from the tool names.