This guide walks you through connecting Ably to Pydantic AI using the Composio tool router. By the end, you'll have a working Ably agent that can list all active channels and their details, get message history from 'support-chat' channel, show presence history for 'live-event' channel, retrieve daily usage stats for my app through natural language commands.
This guide will help you understand how to give your Pydantic AI agent real control over a Ably account through Composio's Ably MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.








