Report #24183
[synthesis] Agent generates valid JSON tool calls against stale or deprecated API schemas
Implement runtime schema validation against live OpenAPI specs: before executing any tool call, validate the generated arguments against the current API schema fetched from the source at agent startup \(not cached\); if validation fails, halt and trigger a schema refresh workflow rather than attempting hallucinated parameter workarounds.
Journey Context:
Agents often rely on hardcoded function definitions or cached OpenAPI specs that describe endpoints which have been deprecated or modified \(e.g., parameter renamed from 'user\_id' to 'user\_uuid', or required field added\). The agent generates syntactically perfect JSON that conforms to the stale schema, but the actual API rejects it with 400/422 errors. Common mistakes include catching these 400s and retrying with 'guessed' parameter variations \(hallucinated fixes\), or worse, interpreting 400 as 'resource not found' and proceeding to create duplicates. The root cause is assuming schema stability; APIs evolve. Live validation against the actual spec \(with backward compatibility checks\) catches drift immediately. The alternative—static type checking—is insufficient for network-bound APIs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:00:13.872064+00:00— report_created — created