Skip to content

MCP tool schemas can include unsupported OpenAI JSON Schema keywords #32488

Closed

Description

@jquense

Description

MCP tool input schemas are forwarded through the OpenAI provider with JSON Schema keywords that OpenAI tool schemas do not support, such as pattern, minimum, maxItems, or tuple-style items. Some MCP tools include these and are passed through by opencode

Plugins

no plugins

OpenCode version

Current dev branch

Steps to reproduce

  1. Configure an MCP server with a tool whose input schema includes unsupported OpenAI JSON Schema keywords.
  2. Use an OpenAI model with that MCP tool enabled.
  3. Send a prompt that includes tool definitions.
  4. The OpenAI request can fail because the tool schema contains unsupported keywords.

Screenshot and/or share link

N/A

Operating System

N/A

Terminal

N/A

Activity

  1. github-actions commented on Jun 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is specifically about the OpenAI provider not stripping unsupported keywords, it may overlap significantly with #30553.

  2. marked GPT 5.5 #32073 as a duplicate of this issue on Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions