Gemini 3 models 400 error with different MCPs

,

Gemini 3 models doesnt work with my MCPs, I’v got various INVALID ARG errors
Claude models is working flawlessly

Trajectory ID: 26ff7d31-b048
Error: HTTP 400 Bad Request
Sherlog:
TraceID: 0xb090ce
Headers: {“Alt-Svc”:[“h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000”],“Content-Length”:[“556”],“Content-Type”:[“text/event-stream”],“Date”:[“Tue, 31 Mar 2026 00:41:10 GMT”],“Server”:[“ESF”],“Server-Timing”:[“gfet4t7; dur=651”],“Vary”:[“Origin”,“X-Origin”,“Referer”],“X-Cloudaicompanion-Trace-Id”:[“b090cea”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“SAMEORIGIN”],“X-Xss-Protection”:[“0”]}

{
“error”: {
“code”: 400,
“message”: “* GenerateContentRequest.tools[9].function_declarations[0].parameters.properties[depth].enum: only allowed for STRING type\n* GenerateContentRequest.tools[9].function_declarations[0].parameters.properties[depth].enum[0]: cannot be empty\n* GenerateContentRequest.tools[9].function_declarations[0].parameters.properties[depth].enum[1]: cannot be empty\n* GenerateContentRequest.tools[9].function_declarations[0].parameters.properties[depth].enum[2]: cannot be empty\n”,
“status”: “INVALID_ARGUMENT”
}
}

Trajectory ID: 14f2f87e-0618
Error: HTTP 400 Bad Request
Sherlog:
TraceID: 0xc8e811c
Headers: {“Alt-Svc”:[“h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000”],“Content-Length”:[“219”],“Content-Type”:[“text/event-stream”],“Date”:[“Tue, 31 Mar 2026 00:46:22 GMT”],“Server”:[“ESF”],“Server-Timing”:[“gfet4t7; dur=690”],“Vary”:[“Origin”,“X-Origin”,“Referer”],“X-Cloudaicompanion-Trace-Id”:[“c8e811c1”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“SAMEORIGIN”],“X-Xss-Protection”:[“0”]}

{
“error”: {
“code”: 400,
“message”: “* GenerateContentRequest.tools[7].function_declarations[0].parameters.properties[programming_language].enum[0]: cannot be empty\n”,
“status”: “INVALID_ARGUMENT”
}
}