sanitize tools for Gemini 3 compatibility #2980

Closed
opened 2026-02-16 17:38:07 -05:00 by yindo · 2 comments
Owner

Originally created by @ZGltYQ on GitHub (Nov 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Got error when try to send message to gemini 3 model:

Invalid value at 'tools.function_declarations[12].parameters.properties[0].value.enum[0]' (TYPE_STRING), 0
Invalid value at 'tools.function_declarations[12].parameters.properties[0].value.enum[1]' (TYPE_STRING), 1
Invalid value at 'tools.function_declarations[12].parameters.properties[0].value.enum[2]' (TYPE_STRING), 2
Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[0]' (TYPE_STRING), 0
Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[1]' (TYPE_STRING), 1
Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[2]' (TYPE_STRING), 2
Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[3]' (TYPE_STRING), 3

After research i found out that problem was caused by Ponter MCP, would you handle properties type ?

OpenCode version

v1.0.78

Steps to reproduce

  1. Add MCP:
    "pointer": {
    "type": "local",
    "command": ["npx", "-y", "@mcp-pointer/server@latest", "start"],
    "environment": {
    "MCP_POINTER_PORT": "7007"
    }

  2. Try to send message

Screenshot and/or share link

No response

Operating System

Nobara 42

Terminal

No response

Originally created by @ZGltYQ on GitHub (Nov 19, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Got error when try to send message to gemini 3 model: Invalid value at 'tools.function_declarations[12].parameters.properties[0].value.enum[0]' (TYPE_STRING), 0 Invalid value at 'tools.function_declarations[12].parameters.properties[0].value.enum[1]' (TYPE_STRING), 1 Invalid value at 'tools.function_declarations[12].parameters.properties[0].value.enum[2]' (TYPE_STRING), 2 Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[0]' (TYPE_STRING), 0 Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[1]' (TYPE_STRING), 1 Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[2]' (TYPE_STRING), 2 Invalid value at 'tools.function_declarations[12].parameters.properties[1].value.enum[3]' (TYPE_STRING), 3 After research i found out that problem was caused by Ponter MCP, would you handle properties type ? ### OpenCode version v1.0.78 ### Steps to reproduce 1) Add MCP: "pointer": { "type": "local", "command": ["npx", "-y", "@mcp-pointer/server@latest", "start"], "environment": { "MCP_POINTER_PORT": "7007" } 2) Try to send message ### Screenshot and/or share link _No response_ ### Operating System Nobara 42 ### Terminal _No response_
yindo added the bug label 2026-02-16 17:38:07 -05:00
yindo closed this issue 2026-02-16 17:38:07 -05:00
Author
Owner

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

We can sanitize mcp server tools for compat thats prolly best

@rekram1-node commented on GitHub (Nov 19, 2025): We can sanitize mcp server tools for compat thats prolly best
Author
Owner

@ZGltYQ commented on GitHub (Nov 20, 2025):

@rekram1-node check it please: https://github.com/sst/opencode/pull/4538

@ZGltYQ commented on GitHub (Nov 20, 2025): @rekram1-node check it please: https://github.com/sst/opencode/pull/4538
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2980