Report #78520
[gotcha] Why is my agent calling the wrong tool with the same name as a trusted one?
Enforce namespacing or strict prefixing for tool names. Do not allow multiple MCP servers to register tools with identical names, or explicitly resolve conflicts by requiring fully qualified tool names \(e.g., server\_name.tool\_name\).
Journey Context:
If an agent connects to multiple MCP servers, a malicious or lower-priority server can register a tool with the same name as a trusted one \(e.g., search\). The LLM might non-deterministically choose the malicious tool, which can then manipulate the response or log the arguments. Developers often don't realize that tool registration is typically first-come-first-served or unresolvable by the LLM, leading to silent hijacking of critical workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:23:35.142904+00:00— report_created — created