Gemini Tool Retrieval: check authorization again before execution

Reddit r/ArtificialInteligence Products

Summary

Google announced Gemini Tool Retrieval in preview, and this piece outlines implementation details and proposed security checks for verifying authorization boundaries between tool-schema discovery and actual execution in agent workflows.

Disclosure: I run Codorc. This is an AI-assisted, source-checked explanation. I have not called the preview API or benchmarked it. Google announced Gemini Tool Retrieval in preview on November 19. For agent builders, I would keep schema discovery, requested actions and verified outcomes as separate trace events. Three implementation details matter: Server-side retrieval retains tool names and descriptions while loading parameter schemas on demand. Retrieving a schema does not finish the task. Custom functions run in your application; remote MCP uses a separate execution path through the connected server. Check the path you actually configured. previous_interaction_id carries conversation history. The current tools configuration still needs to be supplied on subsequent interactions. For a harmless evaluation, I would create a fake registry containing two similarly named operations and give the test user access to only one. Then revoke access after discovery, before execution. The useful observation is whether the execution boundary rejects the now-denied action, even if the agent already has the schema. I would keep five records for each attempt: the current registry and permissions, retrieved schema, proposed arguments, authorization decision, and actual outcome. Include a no-match task and inspect whether the agent reports the missing capability accurately. These are proposed checks, not experiment results. They help distinguish a discovery improvement from an authorization implementation. Google's announcement: https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/ My source-linked explanation also covers conversation state, client-side retrieval and full-task usage accounting: https://codorc.com/en/news/gemini-tool-retrieval-execution-boundaries/ For teams with dynamic tool registries, where do you enforce access changes between discovery and execution?
Original Article

Similar Articles

Introducing Tool Retrieval in the Gemini API

Google AI Blog

Google 推出 Gemini API 的 Tool Retrieval 预览功能,允许智能体按需加载工具参数 schema,从而减少输入 token、降低延迟并提升大规模工具库下的工具选择准确率。

@_philschmid: https://x.com/_philschmid/status/2123806307442401577

X AI KOLs Timeline

Google shipped Dynamic Tool Retrieval (Tool Search Tool) in preview for the Gemini API, letting agents keep hundreds of tools on standby with only compact descriptions upfront and load full parameter schemas on demand, supporting both built-in server-side retrieval and custom client-side retrieval stacks.

Advancing Gemini's security safeguards

Google DeepMind Blog

Google DeepMind announces advanced security improvements for Gemini to defend against indirect prompt injection attacks through model hardening, adaptive evaluation, and layered defense mechanisms. The approach combines fine-tuning on adversarial scenarios with system-level guardrails to build inherent resilience while maintaining model performance.

Gemini Agent (18 minute read)

TLDR AI

Google Cloud 在 Gemini at Work 2026 上发布 Gemini agent——一个面向工作场景的统一智能体,可在单一提示框中回答问题、处理知识工作、创建媒体、编写并运行代码,并深度集成 Google Workspace、行业专属技能与企业级安全治理能力。

Gemini API Managed Agents: 3.6 Flash, hooks, and more

Google AI Blog

Google announced updates to Managed Agents in the Gemini API, including a default to the Gemini 3.6 Flash model, environment hooks for tool call auditing, budget controls, scheduled triggers, and free tier access.