Elastic Email MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the range (YYYY-MM-DDThh:mm:ss). |
to | string | End 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number of items to skip (for paging). |
search | string | Text 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}.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign 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}.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number 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}.
| Parameter | Type | Description |
|---|---|---|
email * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
list_name * | string | List name (from elasticemail_list_lists). |
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number of items to skip (for paging). |
scope | string | Template 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}.
| Parameter | Type | Description |
|---|---|---|
name * | string | Template 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.
| Parameter | Type | Description |
|---|---|---|
from | string | Start of the range (YYYY-MM-DDThh:mm:ss). |
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number of items to skip (for paging). |
order | string | Sort order by date. |
to | string | End 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}.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | Transaction id of the send. |
limit | integer | Maximum number of items to return (1-1000). |
offset | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | Transaction id returned by elasticemail_send_email. |
show_errors | boolean | Include the error text for bounced addresses. |
show_failed | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
from * | string | Sender, for example 'Team <hello@yourdomain.com>'. Its domain must be verified. |
subject * | string | Subject line. |
to * | array | Recipient email addresses (up to 50). |
html | string | HTML body. |
idempotency_key | string | Same key on a retry of the same send: the API does not send it twice. |
reply_to | string | Reply-to address. |
text | string | Plain-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.
| Parameter | Type | Description |
|---|---|---|
contacts * | array | Contacts 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.
| Parameter | Type | Description |
|---|---|---|
emails * | array | Email addresses of the contacts to add. |
list_name * | string | List 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.
| Parameter | Type | Description |
|---|---|---|
emails * | array | Email addresses of the contacts to remove from the list. |
list_name * | string | List name (from elasticemail_list_lists). |