Progressive Tool Discovery
In this article
- Work out how many tokens of tool definitions the model reads with every tool loaded up front and with deferred loading.
- Set up deferred loading with a small set of common tools, a tool search tool and clear namespaces.
- Spot discovery text so vague that the right tool is never found, and fix it.
- Choose which tools stay loaded and which wait for a search, and name the measurements that prove the change helped.
- Terms defined here: progressive tool discovery, tool namespace.
Overview
Your support agent started with three tools. A year later it has eighty, one for every backend operation, and every request still shows the model all eighty descriptions. Most conversations use three or four. You pay for the rest each time, and the model picks from a list that keeps growing.
Must the model see every tool to use any of them? No. You will work out what the full list costs, add a search step that loads tools only when needed, spot the case where the right tool is never found, and decide when the extra step does not pay.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Every tool on every turn
- Load what the task needs
- Groups the search can find
- When the right tool is never found
- Who runs the search
- When deferring costs more
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions