messaging-mcp

v0.1.0
com.pinlyx/messaging-mcp Checked 4 days ago Published 10 days ago

WhatsApp, 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.

ParameterTypeDescription
channelstringChannel: whatsapp, instagram, messenger or telegram.
limitintegerHow many to return, 1 to 100. Default 20.
offsetintegerSkip this many conversations (paging).
querystringCase-insensitive match on name, username or id.
unread_onlybooleanOnly 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).

ParameterTypeDescription
channel *stringChannel: whatsapp, instagram, messenger or telegram.
conversation_id *stringThe other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram).
beforestringISO 8601 time: only messages older than this (paging backwards).
limitintegerHow 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.

ParameterTypeDescription
query *string
channelstringChannel: whatsapp, instagram, messenger or telegram.
limitintegerHow 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.

ParameterTypeDescription
channel *stringChannel: whatsapp, instagram, messenger or telegram.
conversation_id *stringThe other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram).
kindstringMessage kind. Default free_form. Others: template (WhatsApp), tag, private_reply.
senderstringbot (automation, default) or human (a person replying manually).
tagstringMessage 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.

ParameterTypeDescription
channel *stringChannel: whatsapp, instagram, messenger or telegram.
conversation_id *stringThe 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.

ParameterTypeDescription
channelstring
sectionstringOnly 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.

ParameterTypeDescription
include_unapprovedbooleanAlso 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.

ParameterTypeDescription
channel *stringChannel: whatsapp, instagram, messenger or telegram.
conversation_id *stringThe other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram).
text *stringThe message text.
kindstringfree_form (default) or tag (outside the window, needs tag).
reply_to_message_idstringmessage_id from get_conversation to quote.
senderstringbot (default) or human. Say human only when a person is really sending this manually.
tagstringMessage 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.

ParameterTypeDescription
conversation_id *stringThe other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram).
language *stringTemplate language code, for example en_US, tr, de.
name *stringTemplate name.
parametersarrayBody parameter values in order ({{1}}, {{2}}, ...).