Skip to content

sanitize tools for Gemini 3 compatibility #4512

Closed

Description

@ZGltYQ

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 19, 2025
  2. rekram1-node commented on Nov 19, 2025

    @rekram1-node
    Collaborator

    We can sanitize mcp server tools for compat thats prolly best

  3. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 19, 2025
  4. self-assigned this
    on Nov 19, 2025
  5. changed the title [-]Gemini 3 compatibility[/-] [+]sanitize tools for Gemini 3 compatibility[/+] on Nov 19, 2025
  6. ZGltYQ commented on Nov 20, 2025

    @ZGltYQ
    ContributorAuthor

    @rekram1-node check it please: #4538

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions