Skip to content

[Story] Override-able MCP tool descriptions per server #573

Open

Description

@edelauna

Context

Some MCP servers ship tool descriptions that aggressively steer the model — for example, MiniMax's MCP descriptions say the agent MUST use those tools. Users have no way to soften or override these descriptions short of forking the MCP server.

Closes: RooCodeInc/Roo-Code#11738.

Cleaner descriptions also improve search recall for the dynamic tool loading ranker (BM25 and embeddings both rank on description text).

Developer Notes

  • Add `toolDescriptionOverrides?: Record<string, string>` to the per-server MCP config schema (`packages/types/src/mcp.ts`). Key: tool name, value: replacement description.
  • Apply the override in `getMcpServerTools()` (`src/core/prompts/tools/native-tools/mcp_server.ts`) when composing the API `tools` array — swap in the override before sending, keep the original in the `McpTool` struct for display.
  • Show both the original and override descriptions in the MCP settings UI (`webview-ui/src/components/mcp/McpView.tsx`) per-tool edit affordance.

Acceptance Criteria

  • `toolDescriptionOverrides` field added to MCP server config schema
  • Unit test: override applied when set; no override → original description used
  • MCP settings UI shows both original and override; override takes effect on save

Activity

  1. changed the title [-][Story] W0.3 — Override-able MCP tool descriptions per server[/-] [+][Story] Override-able MCP tool descriptions per server[/+] on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions