Skip to content

Conversation

vladnega
Copy link

@vladnega vladnega commented Jun 8, 2025

mcp-use forces the tools to be named according to this format: ^[a-zA-Z0-9_-]+$. Otherwise, the following error is raised:

ERROR mcp_listener: Error during streaming: Error code: 400 - {'error': {'message': "Invalid 'tools[21].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.", 'type': 'invalid_request_error', 'param': 'tools[21].function.name', 'code': 'invalid_value'}}

`mcp-use` forces the tools to be named according to this format: '^[a-zA-Z0-9_-]+$'. Otherwise, the following error is raised:

ERROR mcp_listener: Error during streaming: Error code: 400 - {'error': {'message': "Invalid 'tools[21].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.", 'type': 'invalid_request_error', 'param': 'tools[21].function.name', 'code': 'invalid_value'}}
@vladnega vladnega marked this pull request as ready for review June 8, 2025 12:44
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.

1 participant