Elastic Email MCP by usefulapi

v1.2.1
io.usefulapi/elastic-email Checked 4 days ago Published 1 day ago

Read stats and contacts; send transactional email and manage list membership in Elastic Email.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

elasticemail_get_account Get account

Get the account behind the API key: identity, profile, daily send limit, email credits and feature flags. Good first call to check the key works. Elastic Email API: GET /v4/account.

elasticemail_get_statistics Get sending statistics

Get summary sending counts for a date range: recipients, delivered, bounced, opened, clicked, unsubscribed and complaints. Elastic Email API: GET /v4/statistics.

ParameterTypeDescription
from *stringStart of the range (YYYY-MM-DDThh:mm:ss).
tostringEnd of the range (YYYY-MM-DDThh:mm:ss). Defaults to now.

elasticemail_list_campaigns List campaigns

List email campaigns, optionally filtered by a name fragment. Shows each campaign's name, status and recipients. Elastic Email API: GET /v4/campaigns.

ParameterTypeDescription
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).
searchstringText that the campaign name contains.

elasticemail_get_campaign Get a campaign

Get one campaign by name: its content, status, recipient lists and options. Elastic Email API: GET /v4/campaigns/{name}.

ParameterTypeDescription
name *stringCampaign name (from elasticemail_list_campaigns).

elasticemail_get_campaign_statistics Get campaign statistics

Get sending counts for one campaign: recipients, delivered, bounced, opened, clicked and unsubscribed. Elastic Email API: GET /v4/statistics/campaigns/{name}.

ParameterTypeDescription
name *stringCampaign name (from elasticemail_list_campaigns).

elasticemail_pause_campaign Pause a campaign

Pause a running campaign by name. Pausing stops further sends from that campaign; it can be resumed in Elastic Email. Elastic Email API: PUT /v4/campaigns/{name}/pause.

ParameterTypeDescription
name *stringCampaign name to pause.

elasticemail_list_contacts List contacts

List contacts in the account with their status (Active, Bounced, Unsubscribed, Abuse and more), names and custom fields. Elastic Email API: GET /v4/contacts.

ParameterTypeDescription
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).

elasticemail_get_contact Get a contact

Get one contact by email address: status, consent, source, dates and activity. Elastic Email API: GET /v4/contacts/{email}.

ParameterTypeDescription
email *stringThe contact's email address.

elasticemail_list_lists List contact lists

List the contact lists in the account, with their names and creation dates. Elastic Email API: GET /v4/lists.

ParameterTypeDescription
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).

elasticemail_get_list_contacts List contacts in a list

List the contacts that belong to one contact list. Elastic Email API: GET /v4/lists/{listname}/contacts.

ParameterTypeDescription
list_name *stringList name (from elasticemail_list_lists).
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).

elasticemail_list_suppressions List suppressions

List suppressed addresses: bounces, complaints and unsubscribes. The account does not send to these. Elastic Email API: GET /v4/suppressions.

ParameterTypeDescription
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).

elasticemail_list_templates List templates

List email templates in the Personal or Global scope. Use a template name with elasticemail_get_template. Elastic Email API: GET /v4/templates.

ParameterTypeDescription
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).
scopestringTemplate scope to list.

elasticemail_get_template Get a template

Get one email template by name, with its subject and body. Elastic Email API: GET /v4/templates/{name}.

ParameterTypeDescription
name *stringTemplate name (from elasticemail_list_templates).

elasticemail_list_domains List sending domains

List the sending domains with their verification state (SPF, DKIM, DMARC) and tracking settings. Check here before sending from a new address. Elastic Email API: GET /v4/domains.

elasticemail_list_events List email events

List recent delivery events for the account in a date range: sent, delivered, opened, clicked, bounced and so on. Elastic Email API: GET /v4/events.

ParameterTypeDescription
fromstringStart of the range (YYYY-MM-DDThh:mm:ss).
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).
orderstringSort order by date.
tostringEnd of the range (YYYY-MM-DDThh:mm:ss).

elasticemail_get_transaction_events Get events for a transaction

Get the delivery events for one send, by its transaction id (from a send or a campaign). Elastic Email API: GET /v4/events/{transactionid}.

ParameterTypeDescription
transaction_id *stringTransaction id of the send.
limitintegerMaximum number of items to return (1-1000).
offsetintegerNumber of items to skip (for paging).

elasticemail_get_transaction_status Get status of a transaction

Get the status of one send by transaction id: recipient count, sent, delivered, failed and pending, with error text for failures. Elastic Email API: GET /v4/emails/{transactionid}/status.

ParameterTypeDescription
transaction_id *stringTransaction id returned by elasticemail_send_email.
show_errorsbooleanInclude the error text for bounced addresses.
show_failedbooleanInclude the addresses that failed.

elasticemail_send_email Send an email

Send ONE transactional email (for example a receipt or a password reset) to up to 50 recipients. It is sent for real and cannot be unsent. Not for bulk or marketing mail: use campaigns in Elastic Email for that. The From domain must be verified. Give html, text or both. Elastic Email API: POST /v4/emails/transactional.

ParameterTypeDescription
from *stringSender, for example 'Team <hello@yourdomain.com>'. Its domain must be verified.
subject *stringSubject line.
to *arrayRecipient email addresses (up to 50).
htmlstringHTML body.
idempotency_keystringSame key on a retry of the same send: the API does not send it twice.
reply_tostringReply-to address.
textstringPlain-text body.

elasticemail_add_contacts Add or update contacts

Add contacts to the account, or update them when the email already exists. Only add people who gave consent to receive your email (terms 2.3). Elastic Email API: POST /v4/contacts.

ParameterTypeDescription
contacts *arrayContacts to add or update.

elasticemail_add_contacts_to_list Add contacts to a list

Add existing contacts (by email address) to one contact list. Elastic Email API: POST /v4/lists/{name}/contacts.

ParameterTypeDescription
emails *arrayEmail addresses of the contacts to add.
list_name *stringList name (from elasticemail_list_lists).

elasticemail_remove_contacts_from_list Remove contacts from a list

Remove contacts from one contact list. The contacts stay in the account. Elastic Email API: POST /v4/lists/{name}/contacts/remove.

ParameterTypeDescription
emails *arrayEmail addresses of the contacts to remove from the list.
list_name *stringList name (from elasticemail_list_lists).