---
title: "Comment by Cai on \"Why Your AI Agent Calls the Wrong Tool (and How to Test Tool Routing)\" | Hashnode"
description: "Good breakdown of the routing problem. One pattern we have found effective is giving each MCP server a strict tool manifest with input schemas and letting the m"
url: "https://hashnode.com/posts/ai-agent-tool-selection-too-many-tools/6ae4395e50c7277f122fa376/comment/6ae44fab2fe8878f59daa1be"
---

[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)

[Cai](https://hashnode.com/@cailab)

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

Good breakdown of the routing problem. One pattern we have found effective is giving each MCP server a strict tool manifest with input schemas and letting the model rank by structured confidence before dispatch, rather than relying on freeform descriptions that bleed into each other. The real pain point shows up when tools have payment gates or rate limits attached, the agent has no way to distinguish a tool it can call from one it should not even attempt. Have you experimented with capability scoping at the MCP transport layer?

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

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

That's an interesting approach. A strict tool manifest and capability scoping could certainly help reduce ambiguity, especially when permissions and rate limits come into play. I haven't explored capability scoping at the MCP transport layer in depth yet, but it's definitely worth looking into. Thanks for sharing your experience!
