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
propertiesmust be marked asrequired."
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