Report #51905
[research] Agent hallucinates required parameters for a tool call, causing runtime exceptions that look like API errors
Add a strict JSON schema validation step in the observability layer before tool execution. Log 'schema validation failures' as a distinct metric separate from 'API execution errors'.
Journey Context:
When an agent omits a required field or hallucinates an invalid enum value, the resulting HTTP 400 or TypeError looks like a tool failure. The agent then tries to 'fix' the call, often failing again. By separating schema validation failures from execution errors in telemetry, you can clearly identify LLM reasoning/formatting issues vs. actual downstream service outages, preventing misguided retry loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:37:03.888660+00:00— report_created — created