Report #21239
[gotcha] Silent tool breakage from unsupported JSON Schema features in inputSchema
Restrict inputSchema to simple types \(string, number, boolean, array, object\) and avoid $ref, oneOf, anyOf, or patternProperties. Flatten complex schemas into simpler string descriptions.
Journey Context:
Developers often copy existing OpenAPI/JSON Schemas directly into MCP tool definitions. However, LLMs and MCP clients do not reliably parse complex JSON Schema features like $ref or oneOf. The client may silently drop the tool or the LLM will hallucinate parameters because it cannot resolve the schema. Flattening the schema ensures the LLM actually understands the required input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:03:41.530153+00:00— report_created — created