you connect models to external tools and APIs. Instead of generating text responses, the model determines when to call specific functions and provides the necessary parameters to execute real-world actions. • Augment Knowledge: Access information from external sources like databases, APIs, and knowledge bases. • Extend Capabilities: Use external tools to perform computations and extend the limitations of the model, such as using a calculator or creating charts. • Take Actions: Interact with external systems using APIs, such as scheduling appointments, creating invoices, sending emails, or controlling smart home devices. Function Calling 42 @source: https://ai.google.dev/gemini-api/docs/function-calling
"Gets the current temperature for a given location.", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city name, e.g. San Francisco" } }, "required": ["location"] } } ] } ]
AI application that coordinates and manages one or multiple MCP clients. Client A component that maintains a connection to an MCP server and obtains context from an MCP server for the MCP host to use Server A program that provides context to MCP clients 50 @source: https://modelcontextprotocol.io/docs/learn/architecture
Model Context Protocol (MCP) allows servers to expose tools that can be invoked by language models. Tools enable models to interact with external systems, such as querying databases, calling APIs, or performing computations. Each tool is uniquely identified by a name and includes metadata describing its schema. @Source: https://modelcontextprotocol.io/specification/2025-06-18/server/tools
user's core intent. Step 2: Decide whether to use a tool. - First, check if any of your available tools are directly relevant to answering the question. For example, use a local file search tool for questions about personal notes. - **If no tool is suitable for the question, answer it directly using your general knowledge.** Do not try to force the use of an irrelevant tool. - If a tool is relevant, pick the best one to use. 66
user's core intent. Step 2: Decide whether to use a tool. - First, check if any of your available tools are directly relevant to answering the question. For example, use a local file search tool for questions about personal notes. - **If no tool is suitable for the question, answer it directly using your general knowledge.** Do not try to force the use of an irrelevant tool. - If a tool is relevant, pick the best one to use. 67
user's core intent. Step 2: Decide whether to use a tool. - First, check if any of your available tools are directly relevant to answering the question. For example, use a local file search tool for questions about personal notes. - **If no tool is suitable for the question, answer it directly using your general knowledge.** Do not try to force the use of an irrelevant tool. - If a tool is relevant, pick the best one to use. 68