Report #50341
[synthesis] Agent uses tool in unintended way causing silent logic errors
Enforce strict additionalProperties: false on all tool JSON schemas and use enums for discrete parameters. Never pass raw strings where a structured object or enum is intended.
Journey Context:
Agents often hallucinate extra fields in tool inputs or pass unexpected string formats. If the tool schema is permissive, the backend might silently ignore the bad fields or misinterpret the string, returning a 200 OK. The agent thinks it succeeded. Developers often leave schemas loose for flexibility. Synthesizing API security \(strict contracts\) with LLM function calling reveals that permissive schemas are a primary cause of silent agent derailment; strict schemas force the LLM to constrain its generation to valid states.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:58:44.096564+00:00— report_created — created