Skip to content

Amazon Bedrock Agent Samples - [ raise ValueError( ValueError: Tool tavily-search has more than 5 parameters. This is not supported by Bedrock Agents.] #87

@xiehust

Description

@xiehust

Describe the bug
When I try to install tavily-search mcp, it raise exception that " raise ValueError(
ValueError: Tool (tavily-search)[https://github.com/tavily-ai/tavily-mcp/blob/main/README.md] has more than 5 parameters. This is not supported by Bedrock Agents."

Then I found the code, it seems a hard limit, why there is a 5 limits? I tried several mcp servers, there are amount to servers that has more than 5 parameters in its tool.

To Reproduce
Steps to reproduce the behavior (or some version of this):

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

! Additional context !

  • Sagemaker Studio Kernel used
  • Instance used
  • commit link to the workshop if you're not using the latest

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions