
How to Debug AI Agent Tool-Routing Decisions
When an AI agent calls the wrong tool, the fix is rarely a bigger model. Log the full decision (system prompt, tool schemas, raw output), reproduce at temperature 0 to rule out randomness, then check whether two tool descriptions are actually distinguishable, since that is where most misrouting comes from.










