Connecting Agents to Tools and Services with Google ADK 2.0
Google ADK 2.0
Connect agents to BigQuery, databases through MCP Toolbox, Agent Search, Google Search and code execution, then add Skills and A2A.
- Prerequisites
- Python, HTTP APIs, and ADK agents with tools (the Building Agents with Google ADK 2.0 course covers them).
- Duration
- about 2 hours of reading
- Cost
- Free, no sign-up
What you'll learn
- Load Agent Skills from a folder and run their scripts through a code executor.
- Ground answers with Google Search and compute with Gemini code execution, and cite from grounding metadata.
- Query PostgreSQL through MCP Toolbox for Databases with fixed SQL tools and a read-only role.
- Serve an agent over A2A and call it from another agent.
Lessons
Module 1 · 2 lessonsAdd Skills and built-in Gemini tools
Load Skills from folders, then use Google Search and Gemini code execution.
Give an agent skills from a folder with SkillToolsetRead
Load a folder of Agent Skills into an ADK agent with SkillToolset, run skill scripts, and catch the failures that silently skip a skill's steps.
Use Gemini built-in tools: Google Search grounding and code executionRead
Add Gemini's Google Search and code execution to an ADK agent beside a function tool, cite answers from grounding metadata, and handle request errors.
Module 2 · 4 lessonsConnect databases, search and other agents
Query PostgreSQL and BigQuery, search private data with Agent Search and connect agents through A2A.
Query PostgreSQL through MCP Toolbox for DatabasesRead
Connect an ADK agent to PostgreSQL through MCP Toolbox with fixed SQL tools and a read-only role, and catch toolsets that fail to load.
Query BigQuery with BigQueryToolsetRead
Query docs analytics through ADK BigQueryToolset with SELECT-only execution, a per-query bytes cap, and offline tests for refused jobs.
Search private data stores with Agent SearchRead
Search engineering documents with ADK VertexAiSearchTool, validate a team filter from application state, and inspect recorded grounding metadata.
Expose the docs assistant over A2A and consume itRead
Serve an ADK agent over A2A with to_a2a, call it from another agent with RemoteA2aAgent, and debug card, connection and timeout failures.
