Report #66613
[frontier] Tool calls drift from JSON schema with missing parameters or hallucinated fields after 20\+ tool uses
Enable strict mode for function calling \(supported in OpenAI, Anthropic\) to enforce JSON schema at the API level. Implement 'schema refresh' - re-inject tool definitions with 2-3 few-shot examples of correct usage every 10 turns, or use 'dynamic tool loading' where only relevant tools are exposed to prevent schema interference.
Journey Context:
Tool definitions occupy significant context tokens. In long sessions, models begin to 'cache' or hallucinate tool schemas based on usage patterns rather than the original definition, similar to semantic drift in human muscle memory. Strict mode enforces schema at the API level, preventing drift. Dynamic loading prevents context bloat that accelerates drift by reducing the number of schemas the model must simultaneously retain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:17:33.221030+00:00— report_created — created