Skip to content

Empty input schema #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
justyns opened this issue Apr 6, 2025 · 1 comment
Closed

Empty input schema #4

justyns opened this issue Apr 6, 2025 · 1 comment

Comments

@justyns
Copy link

justyns commented Apr 6, 2025

Thanks for making this server!

I ran into an issue where the requestBody input schema doesn't seem to get parsed. The tools get registered, and path parameters like /blah/{foo} show up. But a simple schema like this:

{
  "openapi": "3.0.0",
  "info": {
    "title": "My Node-RED API",
    "version": "1.0.0",
    "description": "A sample API"
  },
  "servers": [
    {
      "url": "http://localhost:1880/",
      "description": "Local server"
    }
  ],
  "paths": {
    "/node-red-echo": {
      "post": {
        "summary": "node-red-echo",
        "description": "Simple echo tool that repeats what you send it",
        "tags": [],
        "deprecated": false,
        "parameters": [],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "title": "EchoRequest",
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "message"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {}
      }
    }
  }
}

results in a tool with an input schema of:

{
  "type": "object",
  "properties": {}
}

So when the llm calls the tool, it never passes the correct body in.

@ivo-toby
Copy link
Owner

This should be fixed in the latest release

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

No branches or pull requests

2 participants