Report #64699
[synthesis] Agent executes tool successfully but with wrong parameter mapping due to stale schema understanding
Enforce strict schema validation with 'additionalProperties: false' and implement runtime schema fingerprinting: hash the tool's OpenAPI/JSON Schema at agent startup, compare against the hash embedded in the system prompt, and reject execution if drift is detected.
Journey Context:
LLMs often memorize tool schemas from training data or initial system prompts. When the actual API changes \(e.g., parameter renamed from 'query' to 'q'\), the LLM may still generate the old parameter name. If the tool's JSON Schema uses 'additionalProperties: true' \(default in some frameworks\), the extra 'query' parameter is ignored, and 'q' remains empty/default. The tool 'succeeds' \(returns HTTP 200\) but does the wrong thing. Static typing isn't enough because the LLM generates the JSON, not the code. Runtime fingerprinting forces a hard stop when the 'world model' \(schema\) the LLM holds diverges from reality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T15:04:54.788680+00:00— report_created — created