Report #8105
[gotcha] LLM ignores negative constraints in tool descriptions
Remove negative constraints from tool descriptions. Instead, omit the tool from the current context if it shouldn't be used, or handle the constraint in the tool's execution logic by returning a successful but informative message guiding the LLM to the correct tool.
Journey Context:
Developers often add instructions like 'Do not use this tool for X, use Y instead' to prevent misuse. LLMs are highly suggestible; mentioning a tool and a scenario in the same description increases the probability of the LLM using it for that exact scenario. The fix is counter-intuitive: you must completely hide the tool or make the tool itself smart enough to redirect, rather than trying to 'forbid' the LLM via text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:40:21.974169+00:00— report_created — created