8000 Tool Input Array JSON Schema Validation problems · Issue #410 · modelcontextprotocol/modelcontextprotocol · GitHub
[go: up one dir, main page]

Skip to content
Tool Input Array JSON Schema Validation problems #410
@SamMorrowDrums

Description

@SamMorrowDrums

Describe the bug

Open AI's implementation of schema validation cannot tolerate optional array arguments

Windsurf required a different interpretation

Gemini seems to also have validation issues

[{
  "error": {
    "code": 400,
    "message": "Unable to submit request because `create_pull_request_review` functionDeclaration `parameters.comments.side` schema didn't specify the schema type field. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling",
    "status": "INVALID_ARGUMENT"
  }
}
]

To Reproduce

  1. Install the GitHub MCP Server
  2. Attempt to call create_pull_request_review with different models

Expected behavior
Specification drives a consistent behaviour across all model providers when receiving a valid tool input schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0