Surface:Documentation Index
Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
Use this file to discover all available pages before exploring further.
GET /agents/runs/{id}, error.type = "AgentLoopUnknownToolAlias"
When this error occurs
The workflow router splits eachtool_use.name on the first - and looks up the resulting
alias in effective_config.mcp_servers[].alias ∪ effective_config.client_tools[].alias. This
error means the alias matched neither — there’s no resolver for the call.
Common causes:
- The system prompt or the tool catalog itself references an alias that wasn’t actually registered for this run.
- The model hallucinated a tool name (rare with
tool_choiceset; more common withautoand a loose prompt).
How to fix
- Make sure every alias the system prompt mentions also appears in
mcp_serversorclient_toolsfor the run’s effective config. - Tighten the prompt: “Only use the tools listed below; do not invent new ones.”
- Use
tool_choice: {kind: any}to force a real tool, orspecific_toolif you know which one is expected next.

