Ecomail MCP by usefulapi
v1.2.1Read lists, subscribers and campaign stats; add subscribers and create drafts in Ecomail.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ecomail_list_lists List subscriber lists
List all subscriber lists in the account with their ids and names. Good first call. Ecomail API: GET /lists.
ecomail_get_list Get a list
Show one list with its custom fields, groups, segments and subscriber counts. Ecomail API: GET /lists/{list_id}.
| Parameter | Type | Description |
|---|---|---|
list_id * | integer | The list id (from ecomail_list_lists). |
ecomail_get_segments Get list segments
List the segments defined on one list. Ecomail API: GET /lists/{list_id}/segments.
| Parameter | Type | Description |
|---|---|---|
list_id * | integer | The list id (from ecomail_list_lists). |
ecomail_list_subscribers List subscribers in a list
Page through the subscribers of one list. status filters: subscribed (default), unsubscribed, not_confirmed, bounced, complained. Ecomail API: GET /lists/{list_id}/subscribers.
| Parameter | Type | Description |
|---|---|---|
list_id * | integer | The list id (from ecomail_list_lists). |
page | integer | Page number (default 1). |
per_page | integer | Results per page. |
status | string | Subscriber status filter (default subscribed). |
ecomail_get_list_subscriber Get a subscriber in a list
Get one subscriber from one list by email address. Ecomail API: GET /lists/{list_id}/subscriber/{email}.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email address. |
list_id * | integer | The list id (from ecomail_list_lists). |
ecomail_get_subscriber Get a subscriber across the account
Get one subscriber by email across all lists in the account. Ecomail API: GET /subscribers/{email}.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email address. |
ecomail_find_contact Find a contact by email
Search the account for a contact with an exact email address. Ecomail API: POST /search (read only).
| Parameter | Type | Description |
|---|---|---|
query * | string | The exact email address to find. |
ecomail_get_subscriber_events Get a subscriber's events
List the tracked events (website activity and custom events) of one subscriber. Ecomail API: GET /subscribers/{email}/events.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email address. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (max 100). |
ecomail_list_campaigns List campaigns
List campaigns with optional filters: title, subject, status, id, updated date and date range. Ecomail API: GET /campaigns.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Filter from date (YYYY-MM-DD). |
date_to | string | Filter to date (YYYY-MM-DD). |
id | integer | Filter by campaign id. |
per_page | integer | Results per page. |
sort_by | string | Sort column (default id). |
sort_dir | string | Sort direction (default desc). |
status | integer | Filter by campaign status code. |
subject | string | Filter by campaign subject. |
title | string | Filter by campaign title. |
updated_at | string | Filter by updated date (YYYY-MM-DD). |
ecomail_get_campaign Get a campaign
Show one campaign: its settings and archive URL. For a sent campaign, the response also includes its statistics. Ecomail API: GET /campaigns/{campaign_id}.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | integer | The campaign id (from ecomail_list_campaigns). |
ecomail_get_campaign_stats Get campaign stats
Get aggregate stats (opens, clicks, bounces, unsubscribes) of one campaign for an optional date range. Ecomail API: GET /campaigns/{campaign_id}/stats.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | integer | The campaign id (from ecomail_list_campaigns). |
from_date | string | Date in YYYY-MM-DD (UTC). |
to_date | string | Date in YYYY-MM-DD (UTC). |
ecomail_list_automations List automations
List all automations (pipelines) in the account. Ecomail API: GET /pipelines.
ecomail_get_automation_stats Get automation stats
Get aggregate stats of one automation for an optional date range. Ecomail API: GET /pipelines/{pipeline_id}/stats.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | The automation id (from ecomail_list_automations). |
from_date | string | Date in YYYY-MM-DD (UTC). |
to_date | string | Date in YYYY-MM-DD (UTC). |
ecomail_list_templates List templates
List the email templates in the account. Ecomail API: GET /templates.
ecomail_get_template Get a template
Get one email template with its HTML. Ecomail API: GET /templates/{template_id}.
| Parameter | Type | Description |
|---|---|---|
template_id * | integer | The template id (from ecomail_list_templates). |
ecomail_list_domains List sending domains
List the sending domains of the account. Ecomail API: GET /domains.
ecomail_get_transactional_stats Get transactional email stats
Get stats of transactional emails for the last six months. Ecomail API: GET /transactional/stats.
ecomail_list_transactions List e-commerce transactions
List e-commerce transactions (orders tracked with the Ecomail tracker), with optional shop, email and date filters. Ecomail API: GET /tracker/transaction.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Date in YYYY-MM-DD (UTC). |
date_to | string | Date in YYYY-MM-DD (UTC). |
email | string | Filter by customer email address. |
page | integer | Page number (default 1). |
per_page | integer | Results per page (max 500). |
shop | string | Exact shop name. |
ecomail_get_webhook_url Get the campaign stats webhook
Get the webhook URL that receives campaign stats, if one is set. Ecomail API: GET /account/settings/webhook.
ecomail_subscribe_contact Add or update a subscriber in a list
Add a subscriber to a list. Unless skip_confirmation is true, Ecomail sends a double opt-in email. trigger_notification sends the list's new-subscriber notice. trigger_autoresponders starts the automations that match a new subscriber. To restore an unsubscribed contact, set resubscribe true with subscriber_data.status 1 or no status; another status is rejected. Use ecomail_unsubscribe_contact to unsubscribe. Ecomail API: POST /lists/{list_id}/subscribe.
| Parameter | Type | Description |
|---|---|---|
list_id * | integer | The list id (from ecomail_list_lists). |
subscriber_data * | object | Subscriber data to add. Unknown fields are rejected. |
resubscribe | boolean | Restore a previously unsubscribed subscriber (needs status 1 or no status). |
skip_confirmation | boolean | Skip the double opt-in email. |
trigger_autoresponders | boolean | Start the automations that match the new subscriber. |
trigger_notification | boolean | Send the list's new-subscriber notification, if the list has one. |
update_existing | boolean | Update the subscriber if already in the list. |
ecomail_update_subscriber Update a subscriber's profile in a list
Change the profile fields of a subscriber in one list. The email identifies the subscriber. This tool does not change subscription status: use ecomail_unsubscribe_contact to unsubscribe, or ecomail_subscribe_contact with resubscribe true to restore. Ecomail API: PUT /lists/{list_id}/update-subscriber.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address of the subscriber to update. |
list_id * | integer | The list id (from ecomail_list_lists). |
subscriber_data | object | Profile fields to write. Only the fields you send change. Unknown fields are rejected. |
ecomail_unsubscribe_contact Unsubscribe a subscriber from a list
Unsubscribe one email address from one list. The subscriber keeps the record with status unsubscribed. Ecomail API: DELETE /lists/{list_id}/unsubscribe.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email address. |
list_id * | integer | The list id (from ecomail_list_lists). |
ecomail_create_draft_campaign Create a draft campaign
Create a campaign as a draft. This does not send it: sending is not offered by this server. recepient_lists takes list ids or a segment object. smart_delivery sets the sending policy. Ecomail API: POST /campaigns.
| Parameter | Type | Description |
|---|---|---|
title * | string | Internal campaign title (max 255 characters). |
campaign_type | string | Campaign type (default email). |
from_email | string | Sender email address. |
from_name | string | Sender name (max 150 characters). |
html_text | string | HTML content of the campaign. |
recepient_lists | List ids (array of numbers), or the object with segments that Ecomail documents. | |
reply_to | string | Reply-to email address. |
smart_delivery | Smart delivery settings. null turns smart delivery off. | |
subject | string | Subject line (max 255 characters). |
ecomail_track_event Track a subscriber event
Record a custom event for an existing subscriber (for example a product view). The subscriber must already exist. Limits: category, action and label 255 bytes; property 300 bytes; value 20,000 characters. Ecomail API: POST /tracker/events.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address of an existing subscriber. |
action | string | Event action, for example product_viewed. Ecomail truncates it at 255 bytes. |
category | string | Event category, for example shopping or engagement. Ecomail truncates it at 255 bytes. |
label | string | Human-readable label, for example a product name. Ecomail truncates it at 255 bytes. |
property | string | Custom key or identifier, for example a SKU. Ecomail truncates it at 300 bytes. |
value | Event value: a string, or a JSON object or array (Ecomail encodes it). |