Report #102111
[gotcha] Tool call arguments returned by the LLM are not validated against the declared JSON Schema before execution in many MCP client implementations
Validate every tool call against the server's declared JSON Schema on the client side before sending it to the server. Reject calls with extra properties, wrong types, or out-of-range values, and do not rely on the server to be the sole validator.
Journey Context:
The MCP specification includes JSON Schema in tool declarations, but clients often skip client-side validation and forward the LLM's output directly. Models can hallucinate parameters, omit required fields, or include fields not in the schema. Without client-side validation, the server receives garbage or maliciously shaped input that its own validator may handle inconsistently.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:59:39.340481+00:00— report_created — created