Report #51338
[synthesis] Tool schema overfitting causing catastrophic tool calls due to example value bias
Remove all example values from function schemas; use 'description-only' schemas with enum constraints for valid values, never illustrative examples
Journey Context:
Standard practice includes example values in JSON schemas for developer clarity, but LLMs exhibit strong few-shot bias - they overfit to example values when current context looks similar. Descriptive constraints with enums work better than examples for preventing parameter confusion. The tradeoff is slightly higher token count for descriptions, but significantly reduced hallucination rate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:39:18.907278+00:00— report_created — created