Report #61386
[synthesis] Agent hallucinates values for optional tool parameters leading to unintended side effects
Minimize tool schemas to only required parameters. Remove optional fields that have dangerous defaults or side effects, and split complex tools into narrower, single-purpose tools.
Journey Context:
Providing an exhaustive JSON schema with many optional fields seems like good API design for humans, but for LLMs, it acts as a strong prompt for pattern completion. The model will hallucinate values just to fill out the schema, potentially setting flags like force\_delete=True. Developers often try to fix this by adding descriptions like 'only set if sure', which is often ignored. The right call is reducing the surface area of the schema entirely, adhering to the principle of least privilege for tool access.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:31:13.069250+00:00— report_created — created