AI CompendiumA public chart of the language
Home / Tools & Environment / Tool Search
Tools & Environment

Tool Search

also called Deferred tool loading, Tool namespacing

Load tool definitions on demand instead of handing over all of them.

Definition

A mechanism where the model is given an index of available tools and fetches the full definitions only for the ones it needs, rather than receiving every schema in the request. Keeps large tool surfaces affordable.

The problem it solves is real and gets worse with scale: a platform with two hundred operations cannot put two hundred schemas in every request without spending most of the window on tool descriptions the task will never use.

There is a second, larger benefit beyond the context saving: action selection gets easier. Choosing among two hundred schemas is a genuinely harder problem for the model than choosing among three, so reducing what it sees improves accuracy as well as cost.

How people use it
A platform API exposed to an agent.
"Do not hand it all two hundred endpoints. Give it the catalogue and let it pull the two it needs."
Worked example

The platform that got more reliable as it grew

An internal API surface grows past a hundred operations and tool-use accuracy falls.

Expose a searchable index rather than every schema. The agent loads a handful per task, and accuracy stops degrading with the size of the API — which it otherwise would, since the decision gets harder as the surface grows.

Sources
  • docsTool search ↗OpenAI API docs · 2026

    Deferred tool loading and namespaces: the model searches for tool definitions instead of being handed every schema up front.

  • blogCode execution with MCP: building more efficient AI agents ↗Anthropic Engineering · 2025

    Presenting tools as a code API so the agent loads only what it needs and filters results in the sandbox instead of pushing large intermediate data through the context window.

Related terms