Report #43700
[synthesis] Agent hallucinates required arguments for a tool because the tool schema in the prompt is out of sync with the actual API
Dynamically inject tool schemas at runtime from the source of truth \(e.g., OpenAPI spec\) rather than hardcoding them in the system prompt, and validate arguments against the schema before execution.
Journey Context:
Developers often hardcode tool definitions. When the underlying API updates \(e.g., a required parameter is added or renamed\), the agent still tries to call the old schema. The LLM might hallucinate the old parameter name or omit the new required one, leading to API errors. The agent might then try to 'fix' the error by tweaking the hallucinated parameter rather than realizing the schema is wrong. Dynamic schema injection prevents this drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:49:18.195899+00:00— report_created — created