Structure
handler: main function with validated inputsparameters: input schema with types and defaultsreturns: output schema for downstream use
tool.py
Error handling
- Validate required parameters
- Raise descriptive exceptions
- Return consistent error shapes