Hi,
Gemini is returning invalid tool call output that does not follow the MCP schema.
Below is the example
Our MCP tool schema is
{
"name": "support",
"inputSchema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": ["fill_form"]
},
"data": {
"type": "object",
"description": "Data to fill in Support form",
"properties": {
"Support": {
"type": "object",
"properties": {
"What problem are you facing ?": {
"type": "string"
}
},
"required": []
}
},
"required": []
}
},
"required": ["action"]
},
"description": "Contact form. Fills Support form with the data you provide."
}
Tool call output is
"Support": {
"What_problem_are_you_facing_": "in my website image is not loading"
}
The expected key is “What problem are you facing ?”, as defined in the schema, but we received “What_problem_are_you_facing_”.