Report #3969
[gotcha] Same tool schema works for Claude but is rejected by OpenAI, xAI/Grok, or Google
Normalize tool schemas per provider in your gateway or client layer. OpenAI function-calling requires additionalProperties: false at the top-level parameters object. xAI/Grok rejects explicit boolean additionalProperties: false and defaults to false anyway, so strip it recursively for those models. Keep provider-specific sanitizers and test schema submission against each target provider.
Journey Context:
JSON Schema strictness is not uniform across model providers. OpenAI enforces additionalProperties:false; xAI's structured-output validator explicitly rejects boolean false property schemas. SDKs such as Vercel AI SDK add additionalProperties:false unconditionally, breaking xAI via OpenRouter. A schema that is valid MCP may still fail a specific provider. Provider-aware schema normalization is required when the same server is consumed by multiple hosts or models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:36:24.922136+00:00— report_created — created