Gemini adds on-demand tool schemas
Google’s Tool Retrieval preview loads tool parameter descriptions when needed in the Interactions API.
In this article
Keep unused details out of context
Google’s announcement targets developers whose agents have many tools. A parameter schema describes the inputs a function accepts. With Tool Retrieval, the model initially sees deferred tools’ names and descriptions; their full schemas enter its working context when requested. Google presents this as a way to reduce unnecessary input tokens, the text units processed by the model.
Retrieval and execution are separate
The guide requires tool_search alongside defer_loading for server-side retrieval. The API resolves the lookup inside the request, but your application executes the resulting function_call for your own function. Alternatively, client-side retrieval lets your application search its own registry and return matching declarations, adding a round trip. These two modes cannot be combined in one request. Savings are conditional: for small tool libraries, or long conversations that search every turn, loading schemas directly can cost less.
Preserve history and configuration correctly
The Interactions documentation describes a record of execution steps, including tool calls, results and model output. Linking a later turn with previous_interaction_id preserves conversation history, but does not carry forward tools, system instructions or generation settings: send those again when needed. Storage is enabled by default. Setting store=false opts out, but prevents subsequent history chaining and background execution. That distinction matters when deciding how a tool-using conversation should continue.
Sources(3)
- UpdateChecked:
- RetrievalChecked:
- InteractionsChecked:

