messaging-rules
v0.1.1Can I message this person now?
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_messaging_window
Decide whether a business may send a message to a person on WhatsApp, Instagram, Messenger, Telegram or X right now, based on source-cited platform rules (24h windows, templates, the human-agent tag, who must message first). Returns allowed, the reason, when the window ends, conditions you still have to satisfy, allowed alternatives and source URLs.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel id. |
kind | string | Message kind. Default free_form. Others: template (WhatsApp), tag, private_reply, utility_template, marketing_message, sponsored (Messenger). |
last_inbound_at | string | null | ISO 8601 time the person last messaged you (UTC if no offset). For kind private_reply, the time of the comment. null if they never did. |
now | string | ISO 8601 time to evaluate at. Defaults to the current time. |
opened_by | string | How the conversation was opened, e.g. ad_referral for a click-to-message ad. |
sender | string | An automation (bot) or a person replying manually (human). Default bot. |
tag | string | Message tag when kind is tag, e.g. HUMAN_AGENT. |
validate_message
Check a draft message against the documented limits of a channel: text and caption length, attachment count, media type, size, MIME type and extension, and button / quick reply / list row counts and title lengths.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Channel id. |
attachments | array | |
buttons | array | Reply button titles. |
caption | string | |
list_rows | array | List row titles. |
quick_replies | array | Quick reply titles. |
text | string |
get_channel_rules
Return the source-cited rules for one channel (windows, message kinds, tags, limits, rate limits, notes, sources), or a one-line summary of every channel when no channel is given.
| Parameter | Type | Description |
|---|---|---|
channel | string | Channel id. |
section | string | Only return this part. Default all. |