Skip to content

fix(openai-responses): disable strict mode for open tool schemas#3083

Merged
amitksingh1490 merged 4 commits intotailcallhq:mainfrom
alesya-h:main
Apr 24, 2026
Merged

fix(openai-responses): disable strict mode for open tool schemas#3083
amitksingh1490 merged 4 commits intotailcallhq:mainfrom
alesya-h:main

Conversation

@alesya-h
Copy link
Copy Markdown
Contributor

I have an mcp server that needs to receive arbitrary json as a parameter. current implementation makes any request using GPT 5.4 fail when this mcp is present. this allows to disable strict mode if the schema is explicitly non-strict

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 19, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Apr 19, 2026
@amitksingh1490
Copy link
Copy Markdown
Contributor

amitksingh1490 commented Apr 22, 2026

@alesya-h This is great. Please share the mcp which I can use to reproduce this issue. setting is strict false in openai models increase the tool call errors.

@alesya-h
Copy link
Copy Markdown
Contributor Author

@alesya-h
Copy link
Copy Markdown
Contributor Author

$ forge
 _____
|  ___|__  _ __ __ _  ___
| |_ / _ \| '__/ _` |/ _ \
|  _| (_) | | | (_| |  __/
|_|  \___/|_|  \__, |\___|
               |___/

         Version: v2.12.2
New conversation: :new
     Get started: :info, :usage, :help, :conversation
    Switch model: :model
    Switch agent: :forge or :muse or :agent
          Update: :update
            Quit: :exit or <CTRL+D>

┌──────────────────────────────────────────────────────┐
│ TIP: For the best experience, use our zsh plugin!    │
│ · Set up forge via our zsh plugin: forge zsh setup   │
│ · Learn more: https://forgecode.dev/docs/zsh-support │
└──────────────────────────────────────────────────────┘
● [09:22:34] Initialize 48ee2280-1b40-4fad-929f-e0a68576a282
 jsmcp                                                        󱙺 FORGE  gpt-5.4
󰄾 hi
● [09:22:36] ERROR: POST https://chatgpt.com/backend-api/codex/responses

Caused by:
    0: 400 POST https://chatgpt.com/backend-api/codex/responses
    1: {
         "error": {
           "message": "Invalid schema for function 'mcp_jsmcp_tool_execute_code': In context=('properties', 'data'), 'additionalProperties' is required to be supplied and to be false.",
           "type": "invalid_request_error",
           "param": "tools[14].parameters",
           "code": "invalid_function_parameters"
         }
       }
 jsmcp

@amitksingh1490 amitksingh1490 merged commit 3893690 into tailcallhq:main Apr 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants