# Pydantic AI

Rizamo's tools in a Pydantic AI agent, as an MCP toolset.

An `MCPToolset` gives a Pydantic AI agent Rizamo's tools. Keep your [API key](/authentication#api-keys) in `RIZAMO_API_KEY`.

```bash
pip install "pydantic-ai-slim[mcp,anthropic]"
```

```python
import os

from pydantic_ai import Agent
from pydantic_ai.mcp import MCPToolset

rizamo = MCPToolset("https://mcp.rizamo.com/mcp", auth=os.environ["RIZAMO_API_KEY"])
agent = Agent("anthropic:claude-sonnet-5-5", toolsets=[rizamo])

result = agent.run_sync("Save a draft for our Instagram: 'Doors open at 10.'")
print(result.output)
```

`auth` sends the key as a Bearer token. Any model Pydantic AI supports works in place of Claude.
