Report #7899
[gotcha] Agent gets confused and outputs conversational text instead of tool calls when tool descriptions contain behavioral instructions
Keep tool descriptions strictly descriptive \(what it does, what it returns\). Move behavioral logic \(when to use it, constraints\) into the agent's system prompt, not the tool schema.
Journey Context:
Developers often put instructions like 'Only use this tool as a last resort if search fails' inside the MCP tool description. LLMs can interpret this as a conversational instruction and start explaining why they shouldn't use the tool, rather than just calling it. Tool schemas should define the interface and capability; the orchestration layer/system prompt should dictate the strategy. Mixing the two degrades the LLM's ability to reliably trigger the function.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:07:31.473413+00:00— report_created — created