Schema Hallucination: Tool Call Validation
Preventing execution failures caused by invalid JSON or arguments.
Steps
- Intercept tool actions before they reach the execution engine.
- Validate the JSON payload against the tool's required schema.
- Re-prompt the agent with raw error messages and schema definitions.
- Limit 'Correction Turns' to 2 attempts before session termination.
- Apply local 'Syntax Repair' for common JSON formatting errors.