failure

Tool shadowing

Tool shadowing is when two or more tools in an agent's toolkit overlap in purpose enough that the model routes ambiguously — usually picking the worse one or oscillating between them.

When agent tool counts climb, related tools (search_web vs fetch_web_page, get_user vs lookup_account) start shadowing each other. The model sees overlapping descriptions, picks one for reasons that don't surface, and either uses the worse fit or alternates between them across steps. Diagnose by inspecting traces — count which tools were chosen on similar-shaped queries. Fix by tightening descriptions to be mutually exclusive, merging tools, or splitting the agent so each sub-agent has a focused non-overlapping toolkit. Tool shadowing is one of the most common reasons multi-tool agents under-perform single-tool ones.

Common mistakes

FAQ

What is tool shadowing?

Tool shadowing is when two or more tools in an agent's toolkit overlap in purpose enough that the model routes ambiguously — usually picking the worse one or oscillating between them.

What are the most common mistakes with tool shadowing?

Adding tools without auditing the description overlap with existing tools. Forcing multiple narrow tools where one general tool with branching args would route better.

Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/tool-shadowing.md.