What you will add
- runtime validation for tool input
- TypeScript inference inside the handler
- defaults and constraints in one schema
Step 1: Install Zod
Step 2: Add a schema
What changed
input.queryis now typed asstringinput.limitis now typed asnumber- Redop uses the same schema for runtime parsing and tool discovery