You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tool input validation returns with misleading error referencing outputSchema #986
Validation failed: structuredContent does not match tool outputSchema. Validation errors: [: required property 'age' not found]
Instead of referring to structuredContent and outputSchema, the error message should clearly indicate that the error is referring to the input data as otherwise it's misleading to consumers/LLMs.
Environment
MCP SDK 2.0.0-M3 (via Spring AI 2.0.0-M7)
Steps to reproduce
Run ToolInputValidationIntegrationTests#invalidInput_withDefaultValidation_shouldReturnToolError & inspect the produced error message.
or create an MCP server with tool input validation enabled and call a tool with invalid input data
Expected behavior
A concise error response stating that the listed schema validation errors refer to input parameters.
Better assertions in the tool input validation test, not only checking for presence of a substring.
Activity
Clarify tool validation error messages (#1023)