Report #40017
[gotcha] MCP tool fails validation or ignores parameters due to JSON Schema features unsupported by LLM function calling
Restrict MCP inputSchema to simple types, arrays, and objects. Avoid oneOf, anyOf, $ref, or complex nested conditional validations, as LLM function-calling APIs often strip or misinterpret them.
Journey Context:
MCP uses standard JSON Schema, but the LLM clients \(OpenAI, Anthropic\) translate these into their own function calling formats, which only support a subset of JSON Schema. Complex schemas get flattened or ignored, causing the LLM to send malformed JSON that the MCP server rejects. You must design schemas for the LLM's translation layer, not just standard JSON schema validators.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:38:32.922735+00:00— report_created — created