Skip to content

fix: default mcp tool desc to tool name#5802

Merged
jhead merged 1 commit intomainfrom
fix/mcp-empty-tool-desc
Feb 20, 2026
Merged

fix: default mcp tool desc to tool name#5802
jhead merged 1 commit intomainfrom
fix/mcp-empty-tool-desc

Conversation

@jhead
Copy link
Copy Markdown
Collaborator

@jhead jhead commented Feb 20, 2026

Summary

Custom MCP tools without description currently fallback to using the name as the description in the UI, but not when creating the tool config in the LLM request. Some LLM providers, e.g. AWS Bedrock, do not permit empty strings ''.

Example docs: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ToolSpecification.html

Existing fallback behavior: https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L102

This causes an issue where

  • using an LLM on AWS Bedrock
  • with a Custom MCP server
  • with a tool selected that has no description

causes Bedrock to reject the request.

This change makes the UI and server fallback behavior consistent.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @jhead, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses an inconsistency in how custom MCP tools handle missing descriptions. Previously, tools without a specified description would use an empty string when passed to LLM providers, causing errors with services like AWS Bedrock. The change ensures that if a description is not provided, the tool's name is used as a fallback, aligning behavior between the UI and LLM configuration and improving compatibility.

Highlights

  • Consistent Tool Description Fallback: Ensured that custom MCP tools without an explicit description now consistently default to using their tool name, both in the UI and when configuring the tool for LLM requests.
  • AWS Bedrock Compatibility Fix: Resolved an issue where LLM providers like AWS Bedrock would reject requests for custom MCP tools lacking descriptions, as they do not permit empty strings for tool descriptions.
Changelog
  • packages/components/nodes/tools/MCP/core.ts
    • Modified the MCPTool creation logic to use the tool's name as a fallback description if no explicit description is provided.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses an issue where custom MCP tools without a description could cause errors with LLM providers that do not permit empty strings for tool descriptions, such as AWS Bedrock. The change correctly implements a fallback to use the tool's name when a description is not provided. This makes the server-side behavior consistent with the UI and improves compatibility. The fix is well-targeted and correct.

Copy link
Copy Markdown

@harshit-flowise harshit-flowise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@jhead jhead merged commit 3201257 into main Feb 20, 2026
7 checks passed
@jhead jhead deleted the fix/mcp-empty-tool-desc branch February 20, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants