---
title: "Comment by Dr Srinivas Padmanabhuni on \"Why Your AI Agent Calls the Wrong Tool (and How to Test Tool Routing)\" | Hashnode"
description: "The near-miss routing suite is the right idea, and the customer_get_profile example shows why: the new tool's own tests pass while the billing path quietly lose"
url: "https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376/comment/6ae4706cc51e580a8c243dfc"
---

[Discussion](https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376)

Comment [Why Your AI Agent Calls the Wrong Tool (and How to Test Tool Routing)](https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376)

[Dr Srinivas Padmanabhuni](https://hashnode.com/@srinivaspadmanabhuni)

[Oct 30](https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376/comment/6ae4706cc51e580a8c243dfc)

The near-miss routing suite is the right idea, and the customer\_get\_profile example shows why: the new tool's own tests pass while the billing path quietly loses requests. I would add three things. First, track the routing decision as a rate over repeated runs, say 20 per request, since selection at temperature above zero can flip, and a single pass proves little. Second, rerun the suite with the tool list shuffled, because you cite order bias and a test that only passes in one ordering is fragile. Third, keep a held-out set of requests that should route to no tool at all, so a broad new description cannot grab them. Gate the merge on any previously correct request dropping below its baseline rate.

[Adam Jaber](https://hashnode.com/@adamjaber)

[Oct 30](https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376/comment/6ae4706cc51e580a8c243dfc#reply-6ae493b2e0c1b3705c613096)

That's a great addition, especially the held-out requests that should trigger no tool at all. I also like the idea of tracking routing rates rather than treating a single successful run as proof. The baseline comparison makes this even more useful as a CI gate. Thanks for adding these practical considerations!
