Zero-Crash Tools: Solving 'Missing Required Input Keys'
Validation steps to prevent tool-call crashes from missing or malformed inputs.
Steps
- Provide tool input examples in the system prompt.
- Validate required keys before execution.
- Inject safe defaults for optional keys.
- Request regeneration when required keys are missing.
- Use strict schema validation at boundaries.