Report #30680
[synthesis] Agent hallucinates parameters or invents values that violate the tool's JSON schema, leading to silent tool failure
Implement strict schema validation on the agent's generated tool call before execution. If validation fails, feed the exact validation error back to the agent as an observation, forcing it to correct the parameters rather than abandoning the tool.
Journey Context:
LLMs often almost get the schema right, but might add an extra field, use a string instead of an integer, or hallucinate an enum value. If the tool execution layer silently fails or throws an unhandled exception, the agent might interpret the lack of output as success or get confused. By catching schema errors and reflecting them back as a specific validation error, the agent can self-correct in the next iteration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:52:54.335814+00:00— report_created — created