Module 3: Tool Usage
Function Tool, MCP, OpenAPI, Authentication
5 posts
Module 3: Tool Usage
Evolve Agent from “chatbot” to “doer”. Learn Function Tool writing, performance optimization, MCP integration, OpenAPI tool generation, and security authentication.
Articles
| # | Article | Case | Status |
|---|---|---|---|
| 1 | Function Tool Basics: Letting Agent Call Custom Logic | adk-go-tools-function-basics | 🔄 In Progress |
| 2 | Function Tool Performance Optimization | adk-go-tools-function-performance | 🔄 In Progress |
| 3 | MCP Server Integration: External Services as Agent Tools | adk-go-tools-mcp-client | 🔄 In Progress |
| 4 | OpenAPI Tool: Dynamic Tool Generation from REST APIs | adk-go-tools-openapi | 🔄 In Progress |
| 5 | Tool Confirmation & Security Authentication | adk-go-tools-confirmation | 🔄 In Progress |
Prerequisites
- Completed Module 2: Quick Start
- Understand Agent’s three elements and basic execution
Learning Objectives
After completing this module, you will:
- Master Function Tool writing conventions and best practices
- Understand timeout, concurrency control and performance optimization
- Connect external services via MCP protocol
- Auto-generate Tools from OpenAPI specs
- Understand security authentication and user confirmation mechanisms
Learning Path
Complete these five articles in order before proceeding to the “Memory & Context” module.
Tool Confirmation & Security Auth: Adding Safety Valves Before Agent Actions
Detailed Tool Confirmation mechanism—when Agent needs to execute risky operations, how to let user confirm before executing; plus API Key, OAuth and other auth mechanism configuration.
OpenAPI Tool: Dynamic Tool Generation from REST APIs for Agent Invocation
Detailed guide on using OpenAPI Tool to dynamically generate Tools from OpenAPI specs, suitable for services with API documentation but no MCP interface.
MCP Server Integration: Turning Any External Service into an Agent Tool
Detailed MCP (Model Context Protocol) working principles, and how to connect external services (like databases, APIs) to ADK Go Agents through MCP.
Function Tool Performance Optimization: Timeout, Concurrency, and Resource Management
Detailed Function Tool performance optimization strategies: timeout control, concurrent calls, connection pool management, and how to prevent slow Tools from affecting entire Agent’s response.
Function Tool Basics: Letting Agent Call Custom Logic
Deep dive into ADK Go Function Tool writing: interface definition, parameter parsing, return value handling, and how Model correctly recognizes and calls Tools.
