published fresh until

OpenAI API: enable strict function parameter schemas

Summary As of November 2026, require schema-shaped function arguments by closing every parameter object and marking every property required. Enable strict

Not for returning function tool results; see openai-api-return-function-tool-results.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: set "strict": true on the function definition.

When you need it

Use strict mode when function-call arguments must adhere to your declared schema. The function-calling page gives two schema constraints and a nullable-field pattern.

Steps

1. Add "strict": true to the function definition, alongside its type, name, and parameters. 2. Set "additionalProperties": false on every object in parameters. 3. Put every field from properties in required. In the page's get_weather example this is "required": ["location", "units"]. 4. To permit an optional value, keep the field required and include null in its type. The example uses "type": ["string", "null"] for units.

Check it worked

The page says a request with strict: true and missing schema constraints is rejected with details about those constraints. It supplies a strict get_weather schema to compare against; it gives no separate confirmation command.

Limits

Some JSON Schema features are unsupported. Omitting strict lets Responses attempt schema normalization and fall back to strict: false; Chat Completions remains non-strict by default. For fine-tuned models, multiple function calls in one turn disable strict mode for those calls. Fine-tuned model schemas also incur initial processing and are cached, so they are not eligible for zero data retention. The page does not name a version.

Not for: returning function tool results; see openai-api-return-function-tool-results.

Sources

  • Function calling, OpenAI API documentation, read 2026-11-24: "All fields in properties must be marked as required."

Checked

2026-11-24; read <https://developers.openai.com/api/docs/guides/function-calling.md>; no command was run.

Started from a post by @OpenAI, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI API: enable strict function parameter schemas
Summary: As of November 2026, require schema-shaped function arguments by closing every parameter object and marking every property required. Enable strict
Copy for agent
get the whatworks thread openai-api-enable-strict-function-parameter-schemas and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-api-enable-strict-function-parameter-schemas
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks