# Ably

Ably is a real-time messaging platform helping developers build live features, including chat and data synchronization, with global scalability and robust reliability for modern applications

- **Category:** developer tools
- **Auth:** API_KEY
- **Tools:** 26
- **Triggers:** 0
- **Slug:** `ABLY`
- **Version:** 20260217_00

## Tools

### Query Batch Presence

**Slug:** `ABLY_BATCH_PRESENCE`

This tool enables querying the presence states of multiple channels in a single API request. The API retrieves the member presence details of the specified channels in parallel.

### Query Batch Presence History

**Slug:** `ABLY_BATCH_PRESENCE_HISTORY`

This tool enables querying presence history for multiple channels in a single API request. It uses the GET endpoint at https://rest.ably.io/presence to retrieve the member presence history details of the specified channels in parallel.

### Create Ably Channel

**Slug:** `ABLY_CREATE_CHANNEL`

Creates a new channel or retrieves an existing channel in Ably. This tool allows you to programmatically create and initialize channels for real-time messaging. Since Ably creates channels implicitly when first used, this action publishes an empty initialization message to create/activate the channel.

### Delete Channel Subscription

**Slug:** `ABLY_DELETE_CHANNEL_SUBSCRIPTION`

This tool allows you to unsubscribe devices or clients from push notifications for specific channels. The operation is asynchronous, so immediate requests after deletion may briefly still return the subscription.

### Get Channel Details

**Slug:** `ABLY_GET_CHANNEL_DETAILS`

This tool retrieves metadata and details for a specific channel in Ably. It returns a ChannelDetails object containing information about the channel's status, occupancy, and other metadata. The endpoint provides visibility into channel activity, including metrics such as connections, presence, publishers, and subscribers, and requires appropriate permissions.

### Get Channel History

**Slug:** `ABLY_GET_CHANNEL_HISTORY`

This tool retrieves the message history for a specified Ably channel. It uses the GET /channels/{channelId}/messages endpoint to return a paginated list of messages in chronological order, subject to parameters such as 'channelId', 'limit', 'direction', 'start', and 'end'. The tool is useful for auditing, recovering missed messages, analyzing channel activity, and debugging message flows. Authentication is required via basic or token authentication.

### Get Channel Presence

**Slug:** `ABLY_GET_CHANNEL_PRESENCE`

Tool to obtain the set of members currently present for a channel. Use when you need to check which clients are currently connected and active on a specific Ably channel.

### Get Message Versions

**Slug:** `ABLY_GET_MESSAGE_VERSIONS`

Tool to retrieve all historical versions of a specific message from an Ably channel. Use when you need to track message history, including the original message and all subsequent updates or delete operations. Each version includes metadata such as timestamp, action type, and client ID.

### Get Channel Presence History

**Slug:** `ABLY_GET_PRESENCE_HISTORY`

This tool retrieves the history of presence messages for a specified channel in Ably. It allows you to query presence events on a channel within a given time period.

### Get Push Device Registration

**Slug:** `ABLY_GET_PUSH_DEVICE`

Tool to get the full details of a device registration for push notifications. Use when you need to retrieve information about a specific device registered for push notifications, including its platform, state, recipient details, and metadata. Requires the device ID.

### Get Ably Service Time

**Slug:** `ABLY_GET_SERVICE_TIME`

This tool retrieves the current server time from Ably's service in milliseconds since the epoch. It is particularly useful for time synchronization and generating valid TokenRequest timestamps to prevent replay attacks. The endpoint supports multiple content types, handles HTTP errors, network issues, and is a fundamental tool for ensuring accurate timing in Ably applications.

### Get Application Stats

**Slug:** `ABLY_GET_STATS`

This tool retrieves your application's usage statistics from Ably. The stats endpoint returns a paginated list of your application's usage statistics by minute, hour, day, or month. It supports optional parameters such as start, end, direction, limit, and unit to filter and format the returned data. The stats include metrics for: - Message counts and data transferred - Connection counts - Channel usage - API request counts - Push notification metrics - Token request counts

### List Channels

**Slug:** `ABLY_LIST_CHANNELS`

Tool to enumerate all active channels in the Ably application. Use when you need to discover available channels or monitor channel activity. Returns paginated results and is heavily rate-limited. Can return either channel names only or full channel details with occupancy data.

### List Push Channels

**Slug:** `ABLY_LIST_PUSH_CHANNELS`

Tool to list all channels with at least one subscribed device. Use when you need to discover which channels have active push notification subscriptions in your Ably application.

### List Push Channel Subscriptions

**Slug:** `ABLY_LIST_PUSH_CHANNEL_SUBSCRIPTIONS`

This tool retrieves a list of all push notification channel subscriptions. It allows you to view all active push notification subscriptions for channels in your Ably application. Allows filtering by channel, deviceId, and clientId, supports pagination with limit parameter, and returns detailed push notification subscription information including channel, deviceId, and clientId.

### List Registered Push Devices

**Slug:** `ABLY_LIST_REGISTERED_PUSH_DEVICES`

Tool to list all devices registered for receiving push notifications in your Ably application. Use when you need to view, filter, or audit push notification device registrations. Supports filtering by deviceId and clientId, with pagination via limit parameter.

### Patch Push Device Registration

**Slug:** `ABLY_PATCH_PUSH_DEVICE_REGISTRATION`

Tool to partially update specific attributes of an existing device registration in Ably's push notification system. Use when you need to modify device properties like formFactor, clientId, platform, or push recipient details without replacing the entire registration.

### Batch Publish Messages

**Slug:** `ABLY_PUBLISH_BATCH_MESSAGES`

Tool to batch publish messages to multiple channels in parallel. Use when you need to send the same set of messages to multiple channels simultaneously for efficient broadcasting.

### Publish Message to Channel

**Slug:** `ABLY_PUBLISH_MESSAGE_TO_CHANNEL`

This tool will allow users to publish a message to a specified Ably channel using a POST request. It covers the essentials like channel name, message data, optional event name/type, and additional metadata for push notifications. It is an independent and fundamental operation within Ably's real-time messaging platform.

### Publish Push Notification

**Slug:** `ABLY_PUBLISH_PUSH_NOTIFICATION`

Tool to publish a push notification directly to device(s) via Ably's Push Notifications API. Use when you need to send push notifications to specific devices identified by device ID, client ID, or platform-specific tokens. The API returns HTTP 204 on success with no response body.

### Batch Publish Push Notifications

**Slug:** `ABLY_PUBLISH_PUSH_NOTIFICATIONS_BATCH`

Tool to batch publish push notifications directly to specific recipients. Use when you need to send multiple push notifications efficiently in a single request. Supports up to 10,000 notifications per batch.

### Register Push Device

**Slug:** `ABLY_REGISTER_PUSH_DEVICE`

Tool to register a device for receiving push notifications in Ably. Use when you need to enable push notifications for a specific device across various platforms including iOS (APNs), Android (FCM/GCM), and web browsers (Web Push). The device must be registered before it can receive push notifications through Ably's push notification system.

### Request Access Token

**Slug:** `ABLY_REQUEST_ACCESS_TOKEN`

Request an access token for Ably authentication. Use this when you need to generate a token with specific capabilities and client identifiers for secure authentication. The token can be used to authenticate clients with limited permissions and time-bound access.

### Unregister All Push Devices

**Slug:** `ABLY_UNREGISTER_ALL_PUSH_DEVICES`

Tool to unregister matching devices for push notifications. Use when you need to remove device registrations from Ably's push notification system. You can filter by deviceId or clientId, but not both simultaneously.

### Unregister Push Device

**Slug:** `ABLY_UNREGISTER_PUSH_DEVICE`

Tool to unregister a single device from push notifications in Ably. Use when you need to remove a device's push notification registration. This permanently removes the device from receiving push notifications until it is registered again.

### Update Push Device Registration

**Slug:** `ABLY_UPDATE_PUSH_DEVICE`

Tool to update (upsert) a device registration for push notifications in Ably. Use when registering a new device or updating an existing device's push notification configuration. This is an upsert operation - if the device doesn't exist, it will be created; if it exists, it will be updated.
