ruby-sdk
ruby-sdk copied to clipboard
Validate ToolCall Args against Schema
Motivation and Context
Tool call arguments are not being validated against the schema. This ensures that the schema is valid and that the tool call args are valid. Otherwise it fails early.
There is an option to disable tool call validation.
How Has This Been Tested?
Yes. Tested on internal products.
Breaking Changes
Tool calls will be validated, if your application has tool calls coming in that don't match the schema these requests will now fail.
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation update
Checklist
- [x] I have read the MCP Documentation
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling
- [x] I have added or updated documentation as needed