Report #59414
[research] LLM hallucinates the output of a tool/API call instead of actually executing it
Enforce strict schema validation on tool call arguments before execution. Never allow the model to generate its own tool output; if a tool fails, return the explicit error message rather than letting the model guess the result.
Journey Context:
When an agent is fine-tuned or prompted to use tools, it sometimes falls back to its base generative behavior if the tool schema is ambiguous or the context is confusing. It will generate a plausible-looking JSON response as if the tool ran successfully. Strict parsing and returning hard errors breaks this generative loop and forces the model to react to reality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:13:11.016124+00:00— report_created — created