Submit a toolSubmit

How to fix an OpenAI strict tool schema. Set additionalProperties: false and list every property in required

With `strict: true`, OpenAI rejects a function tool unless every object sets `additionalProperties: false` and every property is listed in `required`. Optional fields stay in `required` and use a nullable type such as `["string","null"]`. Short answer: 5 steps. 1) Read the rejection as a schema rule, not a model failure; 2) Set additionalProperties false on every object; 3) Put every property in required; make optionals nullable; 4) Choose strict true, false, or API defaults deliberately; 5) Resend a minimal tool definition, then restore the full set.

Last updated: · This page is the decision checklist; the tools list for “Fix an OpenAI strict tool schema” is a separate URL.

The problem: With `strict: true`, OpenAI rejects a function tool unless every object sets `additionalProperties: false` and every property is listed in `required`. Optional fields stay in `required` and use a nullable type such as `["string","null"]`.

How do I fix an OpenAI strict tool schema?

  1. Read the rejection as a schema rule, not a model failure

    OpenAI’s function-calling docs state that `strict: true` uses Structured Outputs constraints: every object in `parameters` needs `additionalProperties` set to `false`, and every key under `properties` must appear in `required`. A request that breaks those rules is rejected with details about the missing constraints—retrying the same schema will keep failing. Docs: https://developers.openai.com/api/docs/guides/function-calling

  2. Set additionalProperties false on every object

    In the tool `parameters` object (and nested objects), add `"additionalProperties": false`. Leaving it out or setting it to `true` under `strict: true` is a common cause of rejection. Mirror the same rule for Structured Outputs JSON schemas when you use them for response format.

  3. Put every property in required; make optionals nullable

    List every property name in `required`. For fields the model may omit, keep them in `required` and type them as a union with `null` (for example `"type": ["string", "null"]`), as shown in OpenAI’s strict-mode examples. Do not leave optional keys out of `required` while `strict` is true.

  4. Choose strict true, false, or API defaults deliberately

    If you need best-effort calling instead, set `strict: false` explicitly. Omitting `strict` differs by API: Responses may try to normalize into strict mode and fall back with `strict: false` on the tool when it cannot; Chat Completions stays non-strict by default. Prefer fixing the schema and keeping `strict: true` when you want reliable argument shapes.

  5. Resend a minimal tool definition, then restore the full set

    Send one tool with a tiny valid strict schema (object, one string property, `required`, `additionalProperties: false`). When that succeeds, apply the same pattern to nested objects and enums in your real tools. Keep Structured Outputs / function-calling supported-model limits in mind from the Structured Outputs guide: https://developers.openai.com/api/docs/guides/structured-outputs

Which tools are best to fix an OpenAI strict tool schema?

Function calling

Strict mode requirements: additionalProperties false and all properties required, plus nullable optionals.

Structured Outputs

Underlying schema constraints shared with strict function tools.

Using tools

How tool definitions are attached on Responses / Chat Completions requests.

Error codes

General API error overview so schema rejections aren’t mistaken for auth or rate limits.

All tools for “Fix an OpenAI strict tool schema” →

Related fixes

See also AI tools launched today on the daily board.