Report #5398
[tooling] Agent ignoring available MCP tools or using wrong tool for the job
Write tool descriptions as imperative 'when-to-use' statements \(e.g., 'Use this tool ONLY when the user asks about billing history'\) and explicitly document the return schema \(e.g., 'Returns JSON with fields: total \(number\), currency \(string\)'\) so the agent understands the tool's domain and can plan based on expected output structure.
Journey Context:
Generic descriptions like 'This tool searches documents' cause the LLM to hallucinate tool capabilities or select tools based on keyword matching rather than semantic intent. The breakthrough is treating the description as a policy statement: define the trigger conditions \(when\), the constraints \(only if\), and the contract \(returns X format\). This aligns with how LLMs perform tool selection via embeddings of the description against the query context. Without return type documentation, the agent cannot chain tools effectively because it doesn't know what data will be available for the next step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:12:57.144882+00:00— report_created — created