Ecomail MCP by usefulapi

v1.2.1
io.usefulapi/ecomail Checked 4 days ago Published 1 day ago

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

ParameterTypeDescription
list_id *integerThe 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.

ParameterTypeDescription
list_id *integerThe 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.

ParameterTypeDescription
list_id *integerThe list id (from ecomail_list_lists).
pageintegerPage number (default 1).
per_pageintegerResults per page.
statusstringSubscriber 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}.

ParameterTypeDescription
email *stringThe subscriber's email address.
list_id *integerThe 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}.

ParameterTypeDescription
email *stringThe 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).

ParameterTypeDescription
query *stringThe 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.

ParameterTypeDescription
email *stringThe subscriber's email address.
pageintegerPage number (default 1).
per_pageintegerResults 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.

ParameterTypeDescription
date_fromstringFilter from date (YYYY-MM-DD).
date_tostringFilter to date (YYYY-MM-DD).
idintegerFilter by campaign id.
per_pageintegerResults per page.
sort_bystringSort column (default id).
sort_dirstringSort direction (default desc).
statusintegerFilter by campaign status code.
subjectstringFilter by campaign subject.
titlestringFilter by campaign title.
updated_atstringFilter 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}.

ParameterTypeDescription
campaign_id *integerThe 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.

ParameterTypeDescription
campaign_id *integerThe campaign id (from ecomail_list_campaigns).
from_datestringDate in YYYY-MM-DD (UTC).
to_datestringDate 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.

ParameterTypeDescription
pipeline_id *integerThe automation id (from ecomail_list_automations).
from_datestringDate in YYYY-MM-DD (UTC).
to_datestringDate 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}.

ParameterTypeDescription
template_id *integerThe 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.

ParameterTypeDescription
date_fromstringDate in YYYY-MM-DD (UTC).
date_tostringDate in YYYY-MM-DD (UTC).
emailstringFilter by customer email address.
pageintegerPage number (default 1).
per_pageintegerResults per page (max 500).
shopstringExact 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.

ParameterTypeDescription
list_id *integerThe list id (from ecomail_list_lists).
subscriber_data *objectSubscriber data to add. Unknown fields are rejected.
resubscribebooleanRestore a previously unsubscribed subscriber (needs status 1 or no status).
skip_confirmationbooleanSkip the double opt-in email.
trigger_autorespondersbooleanStart the automations that match the new subscriber.
trigger_notificationbooleanSend the list's new-subscriber notification, if the list has one.
update_existingbooleanUpdate 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.

ParameterTypeDescription
email *stringEmail address of the subscriber to update.
list_id *integerThe list id (from ecomail_list_lists).
subscriber_dataobjectProfile 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.

ParameterTypeDescription
email *stringThe subscriber's email address.
list_id *integerThe 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.

ParameterTypeDescription
title *stringInternal campaign title (max 255 characters).
campaign_typestringCampaign type (default email).
from_emailstringSender email address.
from_namestringSender name (max 150 characters).
html_textstringHTML content of the campaign.
recepient_listsList ids (array of numbers), or the object with segments that Ecomail documents.
reply_tostringReply-to email address.
smart_deliverySmart delivery settings. null turns smart delivery off.
subjectstringSubject 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.

ParameterTypeDescription
email *stringEmail address of an existing subscriber.
actionstringEvent action, for example product_viewed. Ecomail truncates it at 255 bytes.
categorystringEvent category, for example shopping or engagement. Ecomail truncates it at 255 bytes.
labelstringHuman-readable label, for example a product name. Ecomail truncates it at 255 bytes.
propertystringCustom key or identifier, for example a SKU. Ecomail truncates it at 300 bytes.
valueEvent value: a string, or a JSON object or array (Ecomail encodes it).