MCP invalid schema in gpt-5.2-codex #5714

Open
opened 2026-02-16 17:55:56 -05:00 by yindo · 0 comments
Owner

Originally created by @MartinVerges on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Hello,

I'm using latest opencode and gitlab cli (1.80.4) and it works in most models but I encounter an error in gpt-5.2-codex.

Invalid schema for function 'glab_glab_api': In context=('properties', 'flags', 'properties', 'field'), array schema missing items.
config:

    "glab": {
      "type": "local",
      "enabled": true,
      "command": ["glab", "mcp", "serve"]
    },

Plugins

No response

OpenCode version

1.1.19

Steps to reproduce

  1. install and configure gitlab glab cli for MCP
  2. add config
    "glab": {
      "type": "local",
      "enabled": true,
      "command": ["glab", "mcp", "serve"]
    },
  1. run a prompt

Screenshot and/or share link

Image

Operating System

MacOS 26

Terminal

Ghostty

Originally created by @MartinVerges on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Hello, I'm using latest opencode and gitlab cli (1.80.4) and it works in most models but I encounter an error in gpt-5.2-codex. `Invalid schema for function 'glab_glab_api': In context=('properties', 'flags', 'properties', 'field'), array schema missing items.` config: ``` "glab": { "type": "local", "enabled": true, "command": ["glab", "mcp", "serve"] }, ``` ### Plugins _No response_ ### OpenCode version 1.1.19 ### Steps to reproduce 1) install and configure gitlab glab cli for MCP 2) add config ``` "glab": { "type": "local", "enabled": true, "command": ["glab", "mcp", "serve"] }, ``` 3) run a prompt ### Screenshot and/or share link <img width="603" height="495" alt="Image" src="https://github.com/user-attachments/assets/98e2d12d-8983-4113-b549-7c34be5b42d9" /> ### Operating System MacOS 26 ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:55:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5714