Skip to content

Clarify tool validation error messages#1023

Merged
tzolov merged 3 commits into
mainfrom
fix-tool-validation-misleading-error-messages-2
Jun 11, 2026
Merged

Clarify tool validation error messages#1023
tzolov merged 3 commits into
mainfrom
fix-tool-validation-misleading-error-messages-2

Conversation

@tzolov

@tzolov tzolov commented Jun 11, 2026

Copy link
Copy Markdown
Contributor
  • DefaultJsonSchemaValidator now emits a neutralmessage;
  • Call sites in ToolInputValidator and the server output handlers prepend their own context prefix,
  • Integration test assertions strengthened accordingly.

Closes #986

- DefaultJsonSchemaValidator now emits a neutralmessage;
- Call sites in ToolInputValidator and the server output handlers
  prepend their own context prefix,
- Integration test assertions strengthened accordingly.

Closes #986

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov added this to the 2.0.0 milestone Jun 11, 2026
Comment thread mcp-core/src/main/java/io/modelcontextprotocol/util/ToolInputValidator.java Outdated
tzolov added 2 commits June 11, 2026 09:29
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov merged commit 99faac6 into main Jun 11, 2026
24 checks passed
@tzolov tzolov deleted the fix-tool-validation-misleading-error-messages-2 branch June 11, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool input validation returns with misleading error referencing outputSchema

2 participants