Skip to main content
The Model Context Protocol (MCP) is an open standard that defines how LLMs interact with external tools and services. Vision Agents supports MCP for function calling and connecting to external tool servers.

How Vision Agents Uses MCP

Vision Agents provides two ways to give your agent access to tools:
  1. Function Registration — Decorate Python functions to make them callable by the LLM
  2. MCP Servers — Connect to local or remote servers that expose tools
Both approaches work with any LLM that supports function calling (OpenAI, Gemini, etc.) and with Realtime models.

Function Registration

Use @llm.register_function() to make any Python function available to your agent:

MCP Servers

Connect to MCP servers for access to external services:
When you add MCP servers to an agent, tools are automatically discovered and registered with the LLM.

When to Use Each Approach

You can combine both — register local functions while also connecting MCP servers.
For detailed examples including parameter types, custom function names, and real-world patterns, see the MCP and Function Calling Guide.