Rule MCP by usefulapi

v1.1.1
io.usefulapi/rule-io Checked 3 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
limitintegerRecords per page, 1 to 100 (default 100).
pageintegerPage 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}.

ParameterTypeDescription
identifier *stringThe subscriber's id, email or phone number, as set in identified_by.
identified_bystringWhat 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.

ParameterTypeDescription
identifier *stringThe subscriber's id, email or phone number, as set in identified_by.
identified_bystringWhat 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}.

ParameterTypeDescription
identifier *stringThe subscriber's id, email or phone number, as set in identified_by.
preference_group_id *integerPreference group id (from rule_list_preference_groups).
identified_bystringWhat 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.

ParameterTypeDescription
limitintegerRecords per page, 1 to 100 (default 100).
pageintegerPage 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}.

ParameterTypeDescription
identifier *stringTag id or tag name.
identified_bystringid or name (default name).
with_countbooleantrue = include the subscriber count.

rule_list_segments List segments

List the account's segments. Rule API: GET /segments.

ParameterTypeDescription
limitintegerRecords 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}.

ParameterTypeDescription
id *integerTemplate 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.

ParameterTypeDescription
limitintegerRecords 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}.

ParameterTypeDescription
identifier *stringGroup 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.

ParameterTypeDescription
limitintegerRecords per page, 1 to 100 (default 100).
pageintegerPage 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.

ParameterTypeDescription
namestringOnly journeys whose name matches.
preference_idintegerOnly 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.

ParameterTypeDescription
emailstringEmail address (required without phone_number).
fieldsarraySubscriber field values.
languagestringISO 639-1 language code, for example sv or en.
phone_numberstringPhone number (required without email).
tagsarrayTag names or ids to add (created if missing).
update_on_duplicatebooleantrue = 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}.

ParameterTypeDescription
id *integerNumeric subscriber id.
emailstringNew email address.
fieldsarraySubscriber field values to set.
languagestringISO 639-1 language code, for example sv or en.
phone_numberstringNew 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.

ParameterTypeDescription
identifier *stringThe subscriber's id, email or phone number, as set in identified_by.
tags *arrayTag names or tag ids (1 to 50).
identified_bystringWhat 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}.

ParameterTypeDescription
identifier *stringThe subscriber's id, email or phone number, as set in identified_by.
tag_identifier *stringTag id or tag name.
identified_bystringWhat the identifier is: id, email or phone_number (default email).