Tool Discovery for AI Agents: Loading the Right Tools Per Step
When an agent's tool catalog grows past a few dozen entries, shipping every schema on every turn taxes the context window and the model's selection accuracy alike. This article treats the catalog as a retrieval problem: a lightweight index that is always present, full schemas bound on demand through a search tool, sticky per-run bindings, fail-closed handling of unknown and vanished tools, and an evaluation that measures selection accuracy against the number of distractors.