Skip to content

[BUG] MCP tool names with hyphens fail when using native tool calling #10642

@pdecat

Description

@pdecat

Problem (one or two sentences)

MCP tools with hyphens in their names fail to execute when using native tool calling because models like Claude convert hyphens to underscores in tool names, causing the tool name parser to fail.

Context (who is affected and when)

Affects all users with MCP servers having hyphenated tool names (e.g., atlassian-jira, google-calendar) when using native tool calling with Claude.

Reproduction steps

  1. Configure an MCP server with a hyphenated tool name such as atlassian-jira_search, LiteLLM does this by default when proxying more than one MCP server
  2. Use native tool calling with Claude
  3. Model outputs mcp__litellm__atlassian_jira_search instead of mcp--litellm--atlassian-jira_search
  4. Tool call fails with RooCode invokes an invalid tool "mcp__litellm__atlassian_jira_search"

Expected result

Tool executes successfully

Actual result

Tool call fails

Variations tried (optional)

No response

App Version

v3.39.3

API Provider (optional)

OpenAI Compatible

Model Used (optional)

Claude Opus 4.5

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions