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
| Approach | Best For |
|---|---|
| Function Registration | Simple tools, inline logic, prototyping |
| MCP Servers | External APIs, shared tooling, complex integrations |
For detailed examples including parameter types, custom function names, and real-world patterns, see the MCP and Function Calling Guide.

