"""ARC before_checkout through Pydantic AI's MCPToolset. No model, no key. pip install "pydantic-ai-slim[mcp]" python example.py """ import asyncio import os from pydantic_ai.mcp import MCPToolset ARC = os.environ.get("ARC_MCP_URL", "https://www.arcreport.ai/api/ask") async def main() -> None: async with MCPToolset(ARC) as arc: # Call before_checkout before you send the user to checkout. record = await arc.direct_call_tool("before_checkout", {"url": "https://allbirds.com"}) print(record) asyncio.run(main())