Report #104066
[synthesis] Moonshot API rejects tool definitions with boolean or null JSON Schema types even though the OpenAI spec allows them
Limit Kimi tool schemas to strings, numbers, integers, objects, arrays, and enums. Replace boolean toggles with enum string flags and avoid nullable types. Validate schemas with Moonshot's walle tool before deployment.
Journey Context:
Kimi's API is billed as OpenAI-compatible, but its JSON Schema subset \(MFJS\) rejects scalar boolean and null property types, returning errors like 'scalar type boolean is not permitted'. This is a provider-specific divergence from the OpenAI spec. It was patched for K2-Thinking after a report, but remains a trap for strict structured outputs and complex schemas.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T05:10:49.768337+00:00— report_created — created