Report #52463
[gotcha] LLM fails to call tool because JSON Schema uses advanced features that the model struggles to generate
Flatten tool schemas into simple, primitive types. Avoid nested \`anyOf\`, \`oneOf\`, or deep \`$ref\` chains. Use enums explicitly and keep the required payload as flat as possible.
Journey Context:
Developers define tool schemas using the full JSON Schema spec. However, LLMs are bad at generating complex, nested JSON with conditional logic \(\`anyOf\`\). They will omit required fields or mess up the nesting, leading to persistent validation errors. Schemas must be optimized for LLM generation, not just standard API validation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:33:14.563930+00:00— report_created — created