Skip to main content
This tutorial assumes you already have a working Redop server.

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.query is now typed as string
  • input.limit is now typed as number
  • Redop uses the same schema for runtime parsing and tool discovery

Milestone

If your client can still connect and call the tool, you now have the core Redop flow working: transport, schema parsing, and typed handler input.

Next