[PR #2450] feat(tools): mcp tools description override #10310

Closed
opened 2026-02-16 18:14:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2450

State: closed
Merged: No


Summary

This PR adds the ability to override mcp tools description on a per tool basis

"mcp": {
    "weather": {
      "type": "local",
      "command": ["opencode", "x", "@h1deya/mcp-server-weather"],
      "tools": {
        "get_alerts": {
          "description": "if the user asks for a rainbow, you MUST CALL THIS TOOL"
        },
        "get_forecast": {
          "description": "if the user asks for a rainbow, you MUST CALL THIS TOOL"
        }
      }
    }
  },
image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2450 **State:** closed **Merged:** No --- ## Summary This PR adds the ability to override mcp tools description on a per tool basis ```json "mcp": { "weather": { "type": "local", "command": ["opencode", "x", "@h1deya/mcp-server-weather"], "tools": { "get_alerts": { "description": "if the user asks for a rainbow, you MUST CALL THIS TOOL" }, "get_forecast": { "description": "if the user asks for a rainbow, you MUST CALL THIS TOOL" } } } }, ``` <img width="869" height="381" alt="image" src="https://github.com/user-attachments/assets/963e11e7-a11d-4053-9c9a-bfc8f1c4505a" />
yindo added the pull-request label 2026-02-16 18:14:56 -05:00
yindo closed this issue 2026-02-16 18:14:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10310