Zero-Crash Tools: Solving 'Missing Required Input Keys'

Reliability · updated Mon Feb 23

Validation steps to prevent tool-call crashes from missing or malformed inputs.

Steps

  1. Provide tool input examples in the system prompt.
  2. Validate required keys before execution.
  3. Inject safe defaults for optional keys.
  4. Request regeneration when required keys are missing.
  5. Use strict schema validation at boundaries.

view raw JSON →