ActiveTrail MCP by usefulapi
v1.2.1Read contacts, groups, campaigns and automations; add contacts to groups in ActiveTrail.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
activetrail_get_account_balance Get account balance
Email and SMS credit balance and the coupon-list balance of the account. Cheapest authenticated call, also used as the login check. ActiveTrail API: GET /api/account/balance.
activetrail_list_sending_profiles List sending profiles
Sender profiles (from name and address) the account can send email campaigns from. ActiveTrail API: GET /api/account/sendingprofiles.
activetrail_list_contacts List contacts
Search the account's contacts by email or SMS text, optionally by last-updated date range. Paginated. ActiveTrail API: GET /api/contacts.
| Parameter | Type | Description |
|---|---|---|
from_date | string | Date as yyyy-mm-dd. |
limit | integer | Items per page (1-100, default 20). |
page | integer | Page number, starting at 1. |
search_term | string | Search text (name, or email/SMS for contacts). |
to_date | string | Date as yyyy-mm-dd. |
activetrail_get_contact Get a contact
One contact by id: email, SMS, name, state, opt-in flag and custom fields (ext1-ext17). ActiveTrail API: GET /api/contacts/{id}.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | Numeric id (from a list tool). |
activetrail_get_contact_groups Get a contact's groups
The groups a contact belongs to. ActiveTrail API: GET /api/contacts/{id}/groups.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | Numeric id (from a list tool). |
activetrail_get_contact_activity Get a contact's activity
The activity log of one contact (sends, opens, clicks and similar events). ActiveTrail API: GET /api/contacts/{id}/activity.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | Numeric id (from a list tool). |
activetrail_list_groups List groups
Contact groups of the account, optionally filtered by name. Paginated. ActiveTrail API: GET /api/groups.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (1-100, default 20). |
page | integer | Page number, starting at 1. |
search_term | string | Search text (name, or email/SMS for contacts). |
activetrail_get_group Get a group
One contact group by id, with its name and member counters. ActiveTrail API: GET /api/groups/{id}.
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | Numeric id (from a list tool). |
activetrail_list_group_members List group members
Contacts in one group, optionally filtered by text or last-updated date range. Paginated. ActiveTrail API: GET /api/groups/{id}/members.
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | Numeric id (from a list tool). |
from_date | string | Date as yyyy-mm-dd. |
limit | integer | Items per page (1-100, default 20). |
page | integer | Page number, starting at 1. |
search_term | string | Search text (name, or email/SMS for contacts). |
to_date | string | Date as yyyy-mm-dd. |
activetrail_add_group_member Add a contact to a group
Create a contact (by email or SMS) and add it to a group. Adding can start automations that use the group as a trigger. It does not send a campaign. ActiveTrail API: POST /api/groups/{id}/members.
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | Numeric id (from a list tool). |
email | string | Email address. Required when sms is not given. |
first_name | string | |
last_name | string | |
sms | string | Phone number for SMS. Required when email is not given. |
activetrail_list_mailing_lists List mailing lists
Mailing lists of the account (id and name). ActiveTrail API: GET /api/mailinglist.
activetrail_list_mailing_list_members List mailing list members
Contacts of one mailing list, optionally by last-updated date range. Paginated. ActiveTrail API: GET /api/mailinglist/{id}/members.
| Parameter | Type | Description |
|---|---|---|
mailing_list_id * | integer | Numeric id (from a list tool). |
from_date | string | Date as yyyy-mm-dd. |
limit | integer | Items per page (1-100, default 20). |
page | integer | Page number, starting at 1. |
to_date | string | Date as yyyy-mm-dd. |
activetrail_list_campaigns List email campaigns
Email campaigns, optionally filtered by mailing list, category, name, send type or last-updated date range. Paginated. ActiveTrail API: GET /api/campaigns.
| Parameter | Type | Description |
|---|---|---|
content_category_id | integer | Only campaigns in this category id. |
from_date | string | Date as yyyy-mm-dd. |
limit | integer | Items per page (1-100, default 20). |
mailing_list_id | integer | Only campaigns for this mailing list id. |
page | integer | Page number, starting at 1. |
search_term | string | Search text (name, or email/SMS for contacts). |
send_type | string | Send type filter, one of the values the API reference lists. |
to_date | string | Date as yyyy-mm-dd. |
activetrail_get_campaign Get an email campaign
One email campaign by id: name, subject, send type, sent state and totals. ActiveTrail API: GET /api/campaigns/{id}.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | integer | Numeric id (from a list tool). |
activetrail_get_campaign_report Get an email campaign report
Summary statistics (sent, opens, clicks, rates, conversions) of one email campaign, optionally for a date range. ActiveTrail API: GET /api/campaignreports/{id}.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | integer | Numeric id (from a list tool). |
from_date | string | Date as yyyy-mm-dd. |
limit | integer | Items per page (1-100, default 20). |
page | integer | Page number, starting at 1. |
to_date | string | Date as yyyy-mm-dd. |
activetrail_list_automations List automations
Marketing automations of the account, optionally filtered by state. Paginated. ActiveTrail API: GET /api/automations.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (1-100, default 20). |
page | integer | Page number, starting at 1. |
state_type | string | Automation state filter, one of the values the API reference lists. |
activetrail_get_automation Get an automation
One automation by id: template, trigger type, trigger object and how many contacts started it. ActiveTrail API: GET /api/automations/{id}.
| Parameter | Type | Description |
|---|---|---|
automation_id * | integer | Numeric id (from a list tool). |
activetrail_list_signup_forms List sign-up forms
Sign-up forms of the account (id and name). ActiveTrail API: GET /api/signupforms.
activetrail_create_contact Create a contact
Create a contact in the account by email or SMS, with optional name, phone and city. The API rejects a duplicate; check with activetrail_list_contacts first. ActiveTrail API: POST /api/contacts.
| Parameter | Type | Description |
|---|---|---|
city | string | |
email | string | Email address. Required when sms is not given. |
first_name | string | |
last_name | string | |
phone1 | string | |
sms | string | Phone number for SMS. Required when email is not given. |