HTTP status: 400Documentation Index
Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
Use this file to discover all available pages before exploring further.
Error message
When this error occurs
Each tool call the model emits is routed by its alias prefix:- An alias listed under
mcp_serversis server-resolved — the workflow calls the MCP server inline and persists the result; you never see those inpending_tool_calls. - An alias listed under
client_toolsis client-resolved — the run pauses atrequires_actionand the caller posts the output astool_outputson the next run.
tool_outputs[].tool_use_id references an assistant turn block whose alias
is in mcp_servers, not client_tools. The server already produced (or failed to produce) the
result for that call; there’s nothing for the caller to contribute.
How to fix
Filter yourtool_outputs to only the ids whose name in the prior requires_action response
started with a client_tools alias. The pending_tool_calls list from GET /agents/runs/{id}
already excludes server-resolved ids — copy from there rather than re-deriving from the message
stream.
