Lists the inbox automation rules in evaluation order (order: the first enabled rule that replies wins), with their conditions (schedule included) and actions (a legacy rule shows its reply as an action), and broken_actions: the actions that cannot work today because what they use is gone (a deleted saved reply, an archived AI Community Manager, a member who left, deleted labels or CRM source). Rules only act on new incoming items of the last 24 hours. Requires view access to the Social Inbox.
Alcance
social_inbox:read
Permiso
Ver el módulo
Tool del MCP
social_inbox_rules_listEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.list".
Costo declarado: hasta 400 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).
Returns one inbox automation rule with its conditions, actions, order, whether it is enabled and broken_actions (the actions that cannot work today: index, kind and reason, such as snippet_missing). 404 inbox_rule_not_found if it is not in this organization. Requires view access.
Alcance
social_inbox:read
Permiso
Ver el módulo
Tool del MCP
social_inbox_rules_getEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.get".
Costo declarado: hasta 25 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).
Parámetros
rule_idstringrutarequerido
The rule id (from social_inbox.rules.list).
Respuesta
idstring
The rule id.
namestring
Its name.
enabledboolean
Whether it runs on new items.
keywordsarray<string>
Words that trigger it (any of them; stored lowercase and without accents). Empty = no text condition.
match_modestring
contains or exact_word.
actionsarray<object>
What it does (1 to 10), in order; see social_inbox.rules.create.
ordernumber
Evaluation order: the first enabled rule that replies wins.
scopeobject | null
Source → false excludes it (ig_comment, tt_message…). Absent = every source.
account_idsarray<string> | null
Only items of these connected accounts.
root_resource_idsarray<string> | null
Only items on these posts or conversations.
scheduleobject | null
Its time condition. Absent = any time. With a time zone that does not exist the rule does not run.
first_message_onlyboolean | null
Only the first message of each author.
broken_actionsarray<object>
The actions that cannot work today (the saved reply, AI position, member, labels or CRM source they use is gone). A rule with broken actions can be renamed or turned off, but not turned on until they are fixed. Empty = all fine.
Creates an inbox automation rule, last in the order and enabled unless enabled false. Conditions (all optional, deterministic, never sentiment or language): keywords (any of them; match_mode contains or exact_word; case and accents ignored), scope (source → false excludes it: ig_comment, ig_message, ig_mention, fb_comment, fb_message, fb_mention, li_comment, li_mention, tt_comment, tt_message), account_ids, root_resource_ids (posts), schedule (inside or outside weekly slots in an IANA time zone that must exist; a slot from later than to crosses midnight into the next day, and from equal to to is rejected) and first_message_only. Actions (1 to 10): management ones run for every matching rule (add_labels, assign to a member or ai-<position_id>, archive, mark_spam, needs_attention, notify members, send_to_crm for direct messages); at most ONE reply action per rule (reply_snippet with a saved reply, or reply_with_cm: an AI Community Manager drafts with an extra directive), and the first enabled rule by order that replies wins. A reply rule needs at least one condition. Referenced members, positions, saved replies, labels and CRM sources must exist in this organization (400 rule_*; a rule with send_to_crm also needs the crm:write scope on a credential). Up to 100 rules (409 limit_reached, details.resource inbox_rules). A reply rule can answer on the networks by itself: outside the app, creating one on (the default) needs a dry run and its confirm_token, like turning it on with social_inbox.rules.set_enabled; created off, or without a reply action, it runs directly. Returns the rule. Owner or admin only. With LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted (the permissions guide lists what each platform allows).
Pide confirmación: primero dry_run: true (vista previa y confirm_token, que vale 10 minutos y una sola vez), después el mismo cuerpo con confirm_token. En unas pocas, solo con ciertos datos: la descripción dice cuándo. Por qué y cómo: Vista previa y confirmación. En esta, solo cuando: the rule has a reply action (reply_snippet or reply_with_cm) and is created on, which it is unless enabled is false: it answers every new matching comment or message by itself.
Alcance
social_inbox:write
Permiso
Editar en el módulo · Solo owner, admin
Tool del MCP
social_inbox_rules_createEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.create".
Costo declarado: hasta 25 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).
Parámetros
namestringcuerporequerido
The rule's name.
actionsarray<object>cuerporequerido
What it does (1 to 10): management actions run for every matching rule; at most one reply action (reply_snippet or reply_with_cm) per rule.
enabledbooleancuerpoopcional
Whether it runs on new items.
Por defecto: true
keywordsarray<string>cuerpoopcional
Words that trigger it (any of them, up to 20; case and accents ignored). Empty = no text condition.
Por defecto: []
match_modeenumcuerpoopcional
contains (inside any word) or exact_word (a whole word).
Valores: contains, exact_word · Por defecto: "contains"
scopeobjectcuerpoopcional
Source → false excludes it (ig_comment, ig_message, ig_mention, fb_comment, fb_message, fb_mention, li_comment, li_mention, tt_comment, tt_message). Absent = every source.
account_idsarray<string>cuerpoopcional
Only items received by these connected accounts (account_id of social_inbox.connections.list), up to 30.
root_resource_idsarray<string>cuerpoopcional
Only items on these posts or conversations (root_resource_id of an item), up to 50.
scheduleobjectcuerpoopcional
Time condition: inside or outside weekly slots in a time zone.
Updates an inbox automation rule: updates is applied over the saved rule and the resulting rule is validated as a whole; null on an optional condition (scope, account_ids, root_resource_ids, schedule, first_message_only) removes it. actions, when sent, replace the list and are validated; when not sent, the saved ones stay (so a rule whose saved reply was deleted can still be renamed or turned off). Conditions (all optional, deterministic, never sentiment or language): keywords (any of them; match_mode contains or exact_word; case and accents ignored), scope (source → false excludes it: ig_comment, ig_message, ig_mention, fb_comment, fb_message, fb_mention, li_comment, li_mention, tt_comment, tt_message), account_ids, root_resource_ids (posts), schedule (inside or outside weekly slots in an IANA time zone that must exist; a slot from later than to crosses midnight into the next day, and from equal to to is rejected) and first_message_only. Actions (1 to 10): management ones run for every matching rule (add_labels, assign to a member or ai-<position_id>, archive, mark_spam, needs_attention, notify members, send_to_crm for direct messages); at most ONE reply action per rule (reply_snippet with a saved reply, or reply_with_cm: an AI Community Manager drafts with an extra directive), and the first enabled rule by order that replies wins. A reply rule needs at least one condition. Outside the app, a change that leaves answering by itself a rule that was not (it turns on a rule with a reply action, or adds a reply to a rule that is on) needs a dry run and its confirm_token, like social_inbox.rules.set_enabled; any other change runs directly. 404 inbox_rule_not_found. Returns the rule. Owner or admin only. With LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted (the permissions guide lists what each platform allows).
Pide confirmación: primero dry_run: true (vista previa y confirm_token, que vale 10 minutos y una sola vez), después el mismo cuerpo con confirm_token. En unas pocas, solo con ciertos datos: la descripción dice cuándo. Por qué y cómo: Vista previa y confirmación. En esta, solo cuando: the change leaves on, with a reply action, a rule that was not answering by itself before (it turns the rule on, or adds a reply to a rule that is on).
Alcance
social_inbox:write
Permiso
Editar en el módulo · Solo owner, admin
Tool del MCP
social_inbox_rules_updateEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.update".
Costo declarado: hasta 25 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).
Parámetros
rule_idstringrutarequerido
The rule id (from social_inbox.rules.list).
updatesobjectcuerporequerido
What changes, applied over the saved rule; null on scope, account_ids, root_resource_ids, schedule or first_message_only removes that condition.
Turns an inbox automation rule on (enabled true) or off (false) without touching the rest. Turning it off never re-validates (an outdated rule can always be turned off); turning on a rule that was off re-validates its saved actions like rules.create (400 rule_snippet_missing, rule_cm_missing, rule_assignee_invalid, rule_labels_missing, rule_crm_source_missing…): fix them with rules.update first (rules.get shows broken_actions). A rule with a reply action answers new comments and messages by itself, so outside the app turning one on needs a dry run and its confirm_token (turning it off, or on a rule without a reply, runs directly). 404 inbox_rule_not_found. Returns the rule. Owner or admin only. With LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted (the permissions guide lists what each platform allows).
Pide confirmación: primero dry_run: true (vista previa y confirm_token, que vale 10 minutos y una sola vez), después el mismo cuerpo con confirm_token. En unas pocas, solo con ciertos datos: la descripción dice cuándo. Por qué y cómo: Vista previa y confirmación. En esta, solo cuando: enabled is true and the rule has a reply action (reply_snippet or reply_with_cm: it answers every new matching comment or message by itself).
Alcance
social_inbox:write
Permiso
Editar en el módulo · Solo owner, admin
Tool del MCP
social_inbox_rules_set_enabledEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.set_enabled".
Costo declarado: hasta 25 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).
Parámetros
rule_idstringrutarequerido
The rule id (from social_inbox.rules.list).
enabledbooleancuerporequerido
true turns it on (its actions are checked again), false off.
Sets the evaluation order of the inbox rules: rule_ids in the new order (position = index). The order decides which reply rule wins. Ids that no longer exist are skipped (counted in skipped). Owner or admin only.
Alcance
social_inbox:write
Permiso
Editar en el módulo · Solo owner, admin
Tool del MCP
social_inbox_rules_reorderEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.reorder".
Costo declarado: hasta 100 lecturas y 100 escrituras por llamada (cuentan en el cupo diario).
Parámetros
rule_idsarray<string>cuerporequerido
Every rule id in the new order (from social_inbox.rules.list): position = index.
Deletes an inbox automation rule. It stays 30 days in the trash (restoring it brings it back with its order and its enabled state). Outside the screen it needs a dry run and a confirm_token, except a REST DELETE with a key allowed to delete. 404 inbox_rule_not_found. Owner or admin only.
Con una API key, este DELETE se ejecuta directo: el registro queda 30 días en la papelera y la respuesta trae su trash_item_id. Con un token OAuth, y por el MCP, pide dry_run → confirm_token.
Alcance
social_inbox:writey «Permitir eliminar» (social_inbox:delete en OAuth)
Permiso
Editar en el módulo · Solo owner, admin
Tool del MCP
social_inbox_rules_deleteEn la superficie completa; en la compacta, mb_execute_operation con id: "social_inbox.rules.delete".
Costo declarado: hasta 1 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).
Parámetros
rule_idstringrutarequerido
The rule id (from social_inbox.rules.list).
Respuesta
oktrue
trash_item_idstring
The trash item this deletion left: the item_id of platform.trash.restore (POST /trash/{item_id}/restore). Missing if nothing went to the trash.
trash_item_idsarray<string>
Only when the deletion left more than one copy: all of them, the first being trash_item_id.
trash_expires_atnumber
When the copy leaves the trash for good (epoch ms): 30 days after the deletion.