Report #103228
[synthesis] xAI/Grok tool schemas fail when additionalProperties: false is present, while OpenAI strict mode requires it
When routing tool schemas to xAI/Grok \(direct or via OpenRouter\), strip boolean additionalProperties: false from object schemas; keep it only for OpenAI strict mode.
Journey Context:
OpenAI's structured outputs and strict function calling enforce additionalProperties: false on every object. xAI's validator rejects boolean property schemas like false because it defaults additionalProperties to false already. Frameworks that sanitize schemas once for all providers therefore break on xAI unless the sanitizer is provider-aware.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:14:08.435150+00:00— report_created — created