Report #26328
[synthesis] Agent hallucinates tool parameters, passing wrong types or missing required fields
Implement strict schema validation at the tool execution layer \*before\* the tool runs. If validation fails, return the exact schema violation as a formatted, agent-readable error message that forces a retry with the correct shape.
Journey Context:
Agents often hallucinate parameters based on their pre-training data rather than the provided schema. If the tool execution fails silently or throws a generic 500 error, the agent assumes the environment is broken and tries alternative, equally broken approaches. By catching schema errors early and reflecting the exact required schema back, the agent can self-correct. Few-shot examples help but don't guarantee compliance; programmatic validation is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:35:45.031248+00:00— report_created — created