How Vision Agents Uses MCP
Vision Agents provides two ways to give your agent access to tools:- Function Registration — Decorate Python functions to make them callable by the LLM
- MCP Servers — Connect to local or remote servers that expose tools
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 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.