Skip to content

AWS Nova Models Tools Naming Convention Issue..

0

Hi, We are trying to use Anthropic Claude MCP Servers to test Nova models function calling but Nova is falling and throwing following exception:

Error processing message: An error occurred (ValidationException) when calling the ConverseStream operation: 6 validation errors detected: Value 'read-query' at 'toolConfig.tools.3.member.toolSpec.name' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][a-zA-Z0-9_]*; Value 'write-query' at 'toolConfig.tools.4.member.toolSpec.name' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][a-zA-Z0-9_]*; Value 'create-table' at 'toolConfig.tools.5.member.toolSpec.name' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][a-zA-Z0-9_]*; Value 'list-tables' at 'toolConfig.tools.6.member.toolSpec.name' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][a-zA-Z0-9_]*; Value 'describe-table' at 'toolConfig.tools.7.member.toolSpec.name' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][a-zA-Z0-9_]*; Value 'append-insight' at 'toolConfig.tools.8.member.toolSpec.name' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][a-zA-Z0-9_]*

Looks like tool names are not allowing hyphen in the name. This is a sure stopper to use MCP servers with Nova family models.

2 Answers
1
Accepted Answer

Issue was with Sqlite and Sentry MCP servers implementations. I have raised the pull request and it has been merged in https://github.com/modelcontextprotocol/servers github repository. Nova models are working fine now with these tools.

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

1

The error you're encountering is indeed related to the naming convention for tools in AWS Nova models. The validation exception indicates that the tool names you're using contain hyphens, which are not allowed according to the specified constraints.

The error message suggests that tool names must follow a specific pattern: they should start with a letter (a-z or A-Z) and can be followed by letters, numbers, or underscores. Hyphens are not permitted in the tool names.

To resolve this issue, you'll need to modify the names of your tools to comply with the required pattern. For example:

  • 'read-query' should be changed to something like 'readQuery' or 'read_query'
  • 'write-query' to 'writeQuery' or 'write_query'
  • 'create-table' to 'createTable' or 'create_table'
  • 'list-tables' to 'listTables' or 'list_tables'
  • 'describe-table' to 'describeTable' or 'describe_table'
  • 'append-insight' to 'appendInsight' or 'append_insight'

By adjusting your tool names to follow this pattern (either camelCase or snake_case), you should be able to resolve the validation errors and successfully use the Nova models with your MCP servers.

This naming convention is likely in place to ensure consistency and avoid potential issues with parsing or interpreting tool names in the AWS Nova ecosystem.
Sources
AWS Bedrock - Claude Model invocations are raising Exception | AWS re:Post
Resolve validation exception errors | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

  • I agree but we don't have an ability to change the external tools, since MCP servers are working fine with OpenAI, Gemini, Claude models, Nova is expected to work as well.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.