[bug] google provider not running due to tool call schema mismatches #264

Closed
opened 2026-02-16 17:25:58 -05:00 by yindo · 4 comments
Owner

Originally created by @monotykamary on GitHub (Jun 24, 2025).

This seems to affect most, if not all gemini models

opencode run --model google/gemini-2.5-pro --print-logs "Read the README file"
...
INFO  2025-06-24T18:07:10 +0ms service=bus type=message.part.updated subscribing
INFO  2025-06-24T18:07:10 +1ms service=session session=ses_85ce0a527ffeuB624MpMl5toK5 chatting
INFO  2025-06-24T18:07:10 +0ms service=app name=provider registering service
INFO  2025-06-24T18:07:10 +1ms service=models.dev refreshing
INFO  2025-06-24T18:07:10 +0ms service=provider init
INFO  2025-06-24T18:07:10 +1ms service=provider providerID=openai found
INFO  2025-06-24T18:07:10 +0ms service=provider providerID=anthropic found
INFO  2025-06-24T18:07:10 +0ms service=provider providerID=openrouter found
INFO  2025-06-24T18:07:10 +0ms service=provider providerID=groq found
INFO  2025-06-24T18:07:10 +0ms service=provider providerID=google found
INFO  2025-06-24T18:07:10 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel
INFO  2025-06-24T18:07:10 +1ms service=provider status=started providerID=google getSDK
INFO  2025-06-24T18:07:10 +13ms service=provider status=completed duration=13 providerID=google getSDK
INFO  2025-06-24T18:07:10 +0ms service=provider providerID=google modelID=gemini-2.5-pro found
INFO  2025-06-24T18:07:10 +1ms service=session sessionID=ses_85ce0a527ffeuB624MpMl5toK5 locking
INFO  2025-06-24T18:07:10 +4ms service=bus type=storage.write publishing
INFO  2025-06-24T18:07:10 +0ms service=bus type=message.updated publishing
INFO  2025-06-24T18:07:10 +1ms service=bus type=storage.write publishing
INFO  2025-06-24T18:07:10 +0ms service=bus type=message.updated publishing
INFO  2025-06-24T18:07:10 +0ms service=app name=mcp registering service
INFO  2025-06-24T18:07:10 +0ms service=mcp key=playbook type=local found
ERROR 2025-06-24T18:07:13 +3123ms service=session error=AI_APICallError: * GenerateContentRequest.tools[0].function_declarations[22].parameters.required[4]: property is not defined
* GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[evaluators].items.required[1]: property is not defined
* GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[testData].items: missing field.
 callback error
INFO  2025-06-24T18:07:13 +0ms service=bus type=session.error publishing
INFO  2025-06-24T18:07:13 +2ms service=session session=ses_85ce0a527ffeuB624MpMl5toK5 type=error part
INFO  2025-06-24T18:07:13 +0ms service=session session=ses_85ce0a527ffeuB624MpMl5toK5 type=error unhandled
INFO  2025-06-24T18:07:13 +2ms service=bus type=storage.write publishing
INFO  2025-06-24T18:07:13 +0ms service=bus type=message.updated publishing
INFO  2025-06-24T18:07:13 +1ms service=session sessionID=ses_85ce0a527ffeuB624MpMl5toK5 unlocking
INFO  2025-06-24T18:07:13 +0ms service=app name=session shutdown
INFO  2025-06-24T18:07:13 +0ms service=app name=mcp shutdown
INFO  2025-06-24T18:07:15 +1378ms service=bus type=storage.write publishing
INFO  2025-06-24T18:07:15 +0ms service=bus type=session.updated publishing

Originally created by @monotykamary on GitHub (Jun 24, 2025). This seems to affect most, if not all gemini models ``` opencode run --model google/gemini-2.5-pro --print-logs "Read the README file" ... INFO 2025-06-24T18:07:10 +0ms service=bus type=message.part.updated subscribing INFO 2025-06-24T18:07:10 +1ms service=session session=ses_85ce0a527ffeuB624MpMl5toK5 chatting INFO 2025-06-24T18:07:10 +0ms service=app name=provider registering service INFO 2025-06-24T18:07:10 +1ms service=models.dev refreshing INFO 2025-06-24T18:07:10 +0ms service=provider init INFO 2025-06-24T18:07:10 +1ms service=provider providerID=openai found INFO 2025-06-24T18:07:10 +0ms service=provider providerID=anthropic found INFO 2025-06-24T18:07:10 +0ms service=provider providerID=openrouter found INFO 2025-06-24T18:07:10 +0ms service=provider providerID=groq found INFO 2025-06-24T18:07:10 +0ms service=provider providerID=google found INFO 2025-06-24T18:07:10 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel INFO 2025-06-24T18:07:10 +1ms service=provider status=started providerID=google getSDK INFO 2025-06-24T18:07:10 +13ms service=provider status=completed duration=13 providerID=google getSDK INFO 2025-06-24T18:07:10 +0ms service=provider providerID=google modelID=gemini-2.5-pro found INFO 2025-06-24T18:07:10 +1ms service=session sessionID=ses_85ce0a527ffeuB624MpMl5toK5 locking INFO 2025-06-24T18:07:10 +4ms service=bus type=storage.write publishing INFO 2025-06-24T18:07:10 +0ms service=bus type=message.updated publishing INFO 2025-06-24T18:07:10 +1ms service=bus type=storage.write publishing INFO 2025-06-24T18:07:10 +0ms service=bus type=message.updated publishing INFO 2025-06-24T18:07:10 +0ms service=app name=mcp registering service INFO 2025-06-24T18:07:10 +0ms service=mcp key=playbook type=local found ERROR 2025-06-24T18:07:13 +3123ms service=session error=AI_APICallError: * GenerateContentRequest.tools[0].function_declarations[22].parameters.required[4]: property is not defined * GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[evaluators].items.required[1]: property is not defined * GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[testData].items: missing field. callback error INFO 2025-06-24T18:07:13 +0ms service=bus type=session.error publishing INFO 2025-06-24T18:07:13 +2ms service=session session=ses_85ce0a527ffeuB624MpMl5toK5 type=error part INFO 2025-06-24T18:07:13 +0ms service=session session=ses_85ce0a527ffeuB624MpMl5toK5 type=error unhandled INFO 2025-06-24T18:07:13 +2ms service=bus type=storage.write publishing INFO 2025-06-24T18:07:13 +0ms service=bus type=message.updated publishing INFO 2025-06-24T18:07:13 +1ms service=session sessionID=ses_85ce0a527ffeuB624MpMl5toK5 unlocking INFO 2025-06-24T18:07:13 +0ms service=app name=session shutdown INFO 2025-06-24T18:07:13 +0ms service=app name=mcp shutdown INFO 2025-06-24T18:07:15 +1378ms service=bus type=storage.write publishing INFO 2025-06-24T18:07:15 +0ms service=bus type=session.updated publishing ```
yindo closed this issue 2026-02-16 17:25:58 -05:00
Author
Owner

@monotykamary commented on GitHub (Jun 24, 2025):

hmm, it seemed to be an intermittent issue on Google's side it seems.

@monotykamary commented on GitHub (Jun 24, 2025): hmm, it seemed to be an intermittent issue on Google's side it seems.
Author
Owner

@oatmealm commented on GitHub (Jul 26, 2025):

I'm seeing it now with all models.

Error: AI_APICallError: * GenerateContentRequest.tools[0].function_declarations[42].parameters.properties[end_published_date].format: only 'enum' and 'date-time' are supported for STRING type
* GenerateContentRequest.tools[0].function_declarations[42].parameters.properties[start_published_date].format: only 'enum' and 'date-time' are supported for STRING type
* GenerateContentRequest.tools[0].function_declarations[43].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type
@oatmealm commented on GitHub (Jul 26, 2025): I'm seeing it now with all models. ``` Error: AI_APICallError: * GenerateContentRequest.tools[0].function_declarations[42].parameters.properties[end_published_date].format: only 'enum' and 'date-time' are supported for STRING type * GenerateContentRequest.tools[0].function_declarations[42].parameters.properties[start_published_date].format: only 'enum' and 'date-time' are supported for STRING type * GenerateContentRequest.tools[0].function_declarations[43].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type ```
Author
Owner

@jacquesbh commented on GitHub (Nov 26, 2025):

Hi,

Even if it's closed, I would like to give some details.

Some models don't support stdio MCP servers.

Disable all your MCPs in your configuration file, then enable them one by one to check if your opencode is responding.

I found out that I was using a MCP server using stdio protocol, which wasn't compatible with the new Gemini models!

Disabling this MCP server gave me those models back!

edit: it seems obvious to proceed like this, but at least it is written :)

@jacquesbh commented on GitHub (Nov 26, 2025): Hi, Even if it's closed, I would like to give some details. Some models don't support stdio MCP servers. Disable all your MCPs in your configuration file, then enable them one by one to check if your opencode is responding. I found out that I was using a MCP server using stdio protocol, which wasn't compatible with the new Gemini models! Disabling this MCP server gave me those models back! edit: it seems obvious to proceed like this, but at least it is written :)
Author
Owner

@rekram1-node commented on GitHub (Nov 26, 2025):

@jacquesbh it shouldn't have anything to do with stdio, but it does have to do with tool schemas, we need better sanitization of tools

@rekram1-node commented on GitHub (Nov 26, 2025): @jacquesbh it shouldn't have anything to do with stdio, but it does have to do with tool schemas, we need better sanitization of tools
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#264