Skip to content

Roo may call mcp tool that is known not to exist. #7631

@R-omk

Description

@R-omk

App Version

Version: 3.26.4 (8cff25a)

API Provider

Not Applicable / Other

Model Used

N/A

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

Sometimes the model gets confused in reasoning and may build a request by specifying the correct name of the MCP server but an incorrect tool name. In this case, the call to this tool proceeds, even though it is not in the list provided during MCP registration.

Example from exported chat

**Assistant:**

<use_mcp_tool>
<server_name>existing_mcp_server_name</server_name>
<tool_name>not_existing_tool</tool_name>
<arguments>
{
  "some": "arguments"
}
</arguments>
</use_mcp_tool>

💥 Outcome Summary

Current behavior: A request with a non-existent tool is sent to the MCP server, and the raw response is sent to the chat.

Expected behavior: An unknown tool should be automatically rejected without interacting with the MCP server. Instead, a hint with a list of current available tools for the selected server should be sent to the chat.

📄 Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions