[{
"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"
}
}
]
Describe the bug
Open AI's implementation of schema validation cannot tolerate optional array arguments
create_pull_request_reviewgithub/github-mcp-server#300Windsurf required a different interpretation
Gemini seems to also have validation issues
To Reproduce
create_pull_request_reviewwith different modelsExpected behavior
Specification drives a consistent behaviour across all model providers when receiving a valid tool input schema