messaging-mcp
v0.1.0WhatsApp, Instagram, Messenger and Telegram inbox for AI assistants on the official APIs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_channels List channels
Show which channels are switched on (WhatsApp, Instagram, Messenger, Telegram), the account behind each, whether this is demo mode and whether sending is enabled.
list_conversations List conversations
List conversations across channels, newest first. Each row has unread count, a preview, and whether you may reply right now. Filter by channel, unread only, or a search over name, username and id.
| Parameter | Type | Description |
|---|---|---|
channel | string | Channel: whatsapp, instagram, messenger or telegram. |
limit | integer | How many to return, 1 to 100. Default 20. |
offset | integer | Skip this many conversations (paging). |
query | string | Case-insensitive match on name, username or id. |
unread_only | boolean | Only conversations with unread inbound messages. |
get_conversation Get conversation
Read the latest messages of one conversation, oldest first, plus a "can_message_now" summary from the platform rules (window state, when it ends, allowed alternatives such as templates or tags).
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel: whatsapp, instagram, messenger or telegram. |
conversation_id * | string | The other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram). |
before | string | ISO 8601 time: only messages older than this (paging backwards). |
limit | integer | How many to return, 1 to 100. Default 30. |
search_messages Search messages
Full text search (case-insensitive substring) over stored messages in both directions, newest first.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
channel | string | Channel: whatsapp, instagram, messenger or telegram. |
limit | integer | How many to return, 1 to 100. Default 20. |
can_message Can I message this person now?
Check the platform rules for a conversation without sending: is the reply window open, when does it end, what conditions apply and what alternatives exist. Based on the last inbound message this server has seen.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel: whatsapp, instagram, messenger or telegram. |
conversation_id * | string | The other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram). |
kind | string | Message kind. Default free_form. Others: template (WhatsApp), tag, private_reply. |
sender | string | bot (automation, default) or human (a person replying manually). |
tag | string | Message tag when kind is tag, for example HUMAN_AGENT. |
mark_read Mark conversation as read
Clear the unread counter of a conversation. Where the platform supports it (WhatsApp, Messenger, Instagram) a read receipt is also sent to the customer; in read-only and demo mode only the local counter changes. Telegram has no bot read receipts.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel: whatsapp, instagram, messenger or telegram. |
conversation_id * | string | The other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram). |
get_rules Get channel rules
Source-cited messaging rules (reply windows, templates, tags, length and media limits, rate limits) for a channel, or a one-line summary of every channel when no channel is given.
| Parameter | Type | Description |
|---|---|---|
channel | string | |
section | string | Only this part of the rules. Default all. |
list_whatsapp_templates List WhatsApp templates
List message templates of the WhatsApp Business Account (approved ones by default). Needed to message a customer outside the 24 hour window. Requires WHATSAPP_BUSINESS_ACCOUNT_ID.
| Parameter | Type | Description |
|---|---|---|
include_unapproved | boolean | Also list pending, rejected and paused templates. |
send_message Send message
Send a text message to a conversation. The message is first checked against the channel limits and the platform rules; if the reply window is closed nothing is sent and the result says why, with alternatives (on WhatsApp: approved templates). Use kind "tag" with a tag such as HUMAN_AGENT only when a person is replying manually and sender is "human". Only send what the user asked for.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel: whatsapp, instagram, messenger or telegram. |
conversation_id * | string | The other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram). |
text * | string | The message text. |
kind | string | free_form (default) or tag (outside the window, needs tag). |
reply_to_message_id | string | message_id from get_conversation to quote. |
sender | string | bot (default) or human. Say human only when a person is really sending this manually. |
tag | string | Message tag for kind tag, for example HUMAN_AGENT. |
send_whatsapp_template Send WhatsApp template
Send an approved WhatsApp template (works outside the 24 hour window). Pass the template name, its language code and the body parameters in order. Use list_whatsapp_templates first. Marketing templates need the customer's opt-in.
| Parameter | Type | Description |
|---|---|---|
conversation_id * | string | The other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram). |
language * | string | Template language code, for example en_US, tr, de. |
name * | string | Template name. |
parameters | array | Body parameter values in order ({{1}}, {{2}}, ...). |