Skip to content
pinlyx avatar

Messaging Rules

pinlyx/messaging-rules

Authoritative source-cited messaging window and draft checks for WhatsApp, Instagram, Messenger, Telegram, and X.

CCM score
58 of 100
tools
3
transport
STDIO
last updated
Nov 25, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Exposes check_messaging_window for sender, channel, and message-kind eligibility, plus validate_message for text, caption, attachment, and button limits
  • Reads from bundled channel rules with get_channel_rules, returning full sections or a summary of all five channels, each value linked to its official source
  • Runs as a local stdio server with no network access or API keys, installed from GitHub or the npm package messaging-rules
  • Designed for agents and developers who need to confirm a message is allowed before sending it

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

check_messaging_windowMay this sender send this kind of message on this channel now? Returns allowed, reason, windowEndsAt, conditions, allowedAlternatives, sources.

May this sender send this kind of message on this channel now? Returns allowed, reason, windowEndsAt, conditions, allowedAlternatives, sources.

No parameter schema in public metadata yet.

validate_messageDoes this draft fit the channel's text, caption, attachment, media size/type and button limits?

Does this draft fit the channel's text, caption, attachment, media size/type and button limits?

No parameter schema in public metadata yet.

get_channel_rulesThe full source-cited rules for a channel, one section of them, or a summary of all channels.

The full source-cited rules for a channel, one section of them, or a summary of all channels.

No parameter schema in public metadata yet.

Readme

messaging-rules

Can I message this person right now? Source-cited rules for WhatsApp, Instagram, Messenger, Telegram and X, as data, a library and an MCP tool.

canMessage({ channel: 'instagram', lastInboundAt: '2026-11-19T09:00:00Z', sender: 'bot' })
// { allowed: false,
//   reason: 'The 24h standard messaging window closed at 2026-11-20T09:00:00.000Z. After it: Only HUMAN_AGENT tagged replies sent by a person, ...',
//   allowedAlternatives: [], sources: ['https://developers.facebook.com/...'] }

Why

The rules that decide whether a business may message someone are spread across dozens of platform pages, change several times a year, and are mostly explained second-hand in vendor help centers, each covering a fragment. There is no machine-readable source, so developers and AI agents keep breaking them:


View the full README on GitHub

Details

Repository
github.com/pinlyx/messaging-rules
Categories
Email & Messaging, Security, Developer Tools
Package
messaging-rules
Transport
STDIO
Registry
MCP registry, active

Questions

Can an AI agent check if it may message a customer on WhatsApp now?

Yes, the messaging-rules MCP server has a check_messaging_window tool that tells whether a sender may send a given kind of message on a channel now. It returns allowed, reason, windowEndsAt, conditions, allowedAlternatives and sources, covering WhatsApp, Instagram, Messenger, Telegram and X.

What tools does the messaging-rules server give an agent?

It exposes three tools: check_messaging_window, validate_message and get_channel_rules. validate_message checks a draft against channel text, caption, attachment, media size and button limits, while get_channel_rules returns the source-cited rules for a channel.

Which category does messaging-rules belong to, and what leads it?

messaging-rules is listed under Email & Messaging on Claude Marketplaces, alongside Agent-Native Dispatch, WhatsApp, MoeMail, Slack and Commonly. It sets itself apart by answering whether a message may be sent now, using source-cited platform rules for five channels.

How do I add the messaging-rules MCP server to my client?

The npm package messaging-rules ships a stdio MCP server, so it runs through a stdio transport. Each rule it returns carries the official source URL it was read from.

More from pinlyx

All 2

Similar to Messaging Rules

More Email & Messaging