Rule MCP by usefulapi
v1.1.1Read subscribers, tags, templates and suppressions; create subscribers and add tags in Rule.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rule_list_subscribers List subscribers
List subscribers of the account, one page at a time. For the next page, pass nextPage as page with the same limit. Rule API: GET /subscribers.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page, 1 to 100 (default 100). |
page | integer | Page number from a previous nextPage (default 1). |
rule_get_subscriber Get subscriber
Get one subscriber with tags, suppression state and segments, found by id, email or phone number. Rule API: GET /subscribers/{identifier}.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The subscriber's id, email or phone number, as set in identified_by. |
identified_by | string | What the identifier is: id, email or phone_number (default email). |
rule_list_subscriber_tags List subscriber tags
List the tags of one subscriber. Rule API: GET /subscribers/{identifier}/tags.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The subscriber's id, email or phone number, as set in identified_by. |
identified_by | string | What the identifier is: id, email or phone_number (default email). |
rule_get_subscriber_preferences Get subscriber preferences
Get one subscriber's opt-in state in one preference group. Rule API: GET /subscriber/{identifier}/preference_group/{preference_group_id}.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The subscriber's id, email or phone number, as set in identified_by. |
preference_group_id * | integer | Preference group id (from rule_list_preference_groups). |
identified_by | string | What the identifier is: id, email or phone_number (default email). |
rule_list_tags List tags
List the account's tags, one page at a time. For the next page, pass nextPage as page with the same limit. Rule API: GET /tags.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page, 1 to 100 (default 100). |
page | integer | Page number from a previous nextPage (default 1). |
rule_get_tag Get tag
Get one tag by id or name, optionally with the number of subscribers on it. Rule API: GET /tags/{identifier}.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Tag id or tag name. |
identified_by | string | id or name (default name). |
with_count | boolean | true = include the subscriber count. |
rule_list_segments List segments
List the account's segments. Rule API: GET /segments.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page, 1 to 100 (default 100). |
rule_list_templates List templates
List the account's email templates (id and name). Rule API: GET /templates.
rule_get_template Get template
Get one email template with its blocks and HTML/plain content. Rule API: GET /templates/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Template id (from rule_list_templates). |
rule_list_field_groups List subscriber field groups
List the subscriber field groups and their fields. Rule API: GET /customizations.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page, 1 to 100 (default 100). |
rule_get_field_group Get subscriber field group
Get one subscriber field group by id or name, with its fields. Rule API: GET /customizations/{identifier}.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Group id or group name. |
rule_list_suppressions List suppressions
List suppressed subscribers (bounces and similar) with the dispatcher type and reason. For the next page, pass nextPage as page with the same limit. Rule API: GET /suppressions.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page, 1 to 100 (default 100). |
page | integer | Page number from a previous nextPage (default 1). |
rule_list_preference_groups List preference groups
List the account's preference groups (subscriber opt-in topics). Rule API: GET /preference-groups.
rule_list_journeys List journeys
List the account's journeys, optionally filtered by name or preference group. Rule API: GET /journey.
| Parameter | Type | Description |
|---|---|---|
name | string | Only journeys whose name matches. |
preference_id | integer | Only journeys of this preference group id. |
rule_create_subscriber Create subscriber
Create a subscriber by email or phone number, with optional tags and field values. update_on_duplicate = true updates an existing subscriber. This tool leaves the automation flag off. Rule API: POST /subscribers.
| Parameter | Type | Description |
|---|---|---|
email | string | Email address (required without phone_number). |
fields | array | Subscriber field values. |
language | string | ISO 639-1 language code, for example sv or en. |
phone_number | string | Phone number (required without email). |
tags | array | Tag names or ids to add (created if missing). |
update_on_duplicate | boolean | true = update the subscriber when it already exists (default false). |
rule_update_subscriber Update subscriber
Update one subscriber's email, phone number, language or field values by numeric id. Tags change through the tag tools. Rule API: PUT /subscribers/{identifier}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Numeric subscriber id. |
email | string | New email address. |
fields | array | Subscriber field values to set. |
language | string | ISO 639-1 language code, for example sv or en. |
phone_number | string | New phone number. |
rule_add_subscriber_tags Add tags to subscriber
Add tags to one subscriber. A missing tag name is created. An active automation on the tag can start. Rule API: POST /subscribers/{identifier}/tags.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The subscriber's id, email or phone number, as set in identified_by. |
tags * | array | Tag names or tag ids (1 to 50). |
identified_by | string | What the identifier is: id, email or phone_number (default email). |
rule_remove_subscriber_tag Remove tag from subscriber
Remove one tag from one subscriber. The tag and the other subscribers keep it. Rule API: DELETE /subscribers/{identifier}/tags/{tag_identifier}.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | The subscriber's id, email or phone number, as set in identified_by. |
tag_identifier * | string | Tag id or tag name. |
identified_by | string | What the identifier is: id, email or phone_number (default email). |