Lesson 6 of 9 · 4 min read
Large Tool Surfaces
Selection accuracy falls and per-turn cost rises as an agent's tool list grows, especially when tools overlap. The fixes, in order: consolidate endpoint-shaped tools into decision-shaped ones and namespace the rest; project the tool list per task so a run only sees what its task needs; load definitions on demand through a tool search step; or route requests to specialist agents with small tool sets. Each fix is judged on a labelled tool-selection set, and dynamic tool lists are placed so they do not break the prompt cache.
Get full Premium access · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Practise it as an interviewer asks it
What is tool calling, and what actually happens when a model 'calls a tool'?Design the tool definitions an agent sees for an order-management API.An agent task costs too much and takes 90 seconds. How do you cut both systematically?Search-and-replace blocks, unified diffs or whole-file rewrites: choose an edit format.A frontier model improves your agent's accuracy by 2 points but triples inference cost. How do you decide?Tool arguments fail validation 3% of the time under load. Diagnose it.