Skip to content

Invalid argument on query #5

Description

@gsouf

Hello,

thank you this nice tool to browse the openapi doc :)

I found out that when asking claude code to look specifically for a keyword to find an endpoint from the openapi, it goes throught this MCP's tool but fails with the following error:

● openapi - search-schema (MCP)(query: "email")
  ⎿  Error: MCP error -32602: Input validation error: Invalid arguments for tool search-schema: [
       {
         "code": "invalid_type",
         "expected": "string",
         "received": "undefined",
         "path": [
           "pattern"
         ],
         "message": "Required"
       }
     ]

Then it made a second attempt replacing "query" with "pattern":

● openapi - search-schema (MCP)(pattern: "email")

That worked that time.

Seem that claude code is sending an argument that is not accepted by the mcp server. I have never had to deal with MCP before though so I can't tell.

Any idea what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions