Skip to content

Outside MCP Service 64 Chars Tool Name issue: OpenAI API error: Error code: 400 #1132

@piyush-accacia

Description

@piyush-accacia

Bug Description

When I am trying to connect outside MCP Service, it is giving the following issue:

OpenAI API error: Error code: 400 - {'error': {'code': 'invalid_request_error', 'message': 'tools.0.custom.name: String should have at most 64 characters', 'type': 'invalid_request_error', 'param': None}}

Note that the tool name is always appended with mcp_sse<tool_name> this is bound to be more than 64. If I try shortening it using md5, the tool doesnt get picked up

Bug solved method

Still open, trying to find a resolution

Environment information

  • System version: MacOSX
  • Python version: Python3.12
  • OpenManus version or branch: main
  • Installation method (e.g., pip install -r requirements.txt or pip install -e .): pip install -r requirements.txt (post gitclone)

Extra information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions