Emailchef MCP by usefulapi

v1.10.1
io.usefulapi/emailchef Checked 2 days ago Published 1 day ago

Read lists, contacts, campaign stats; add contacts; draft, schedule and send campaigns and SMS.

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

emailchef_get_account Get account

The Emailchef account this API key belongs to: id, email, language, status, subscriber total, bounces and complaints. GET /accounts/current.

emailchef_get_subscription Get subscription

The account's current Emailchef plan: plan name, plan expiry, contact and send limits, credits left, active/expired flags. Check this before a big send. GET /subscriptions/current.

emailchef_list_senders List senders

List the sender identities (name, email, verification status, postal address). Campaigns and emails need a verified sender id. GET /senders.

emailchef_list_timezones List timezones

List Emailchef's timezones (id, name, fixed UTC offset). The id is required to schedule a campaign. GET /meta/timezones.

emailchef_list_lists List contact lists

List the contact lists with id, name, and counts of active, unsubscribed and bounced contacts and segments. Newest first by default. GET /lists.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset.
orderstringSort direction (default desc).
order_bystringSort by creation date (default) or name.

emailchef_get_list Get list

One contact list: name, description, default sender, creation date. GET /lists/{list_id}.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).

emailchef_get_list_stats Get list growth stats

Daily growth of a list over a date range: total contacts per day and the daily delta. Omit the dates for the whole history. GET /lists/{list_id}/stats.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).
end_datestringLast day, yyyy-mm-dd.
start_datestringFirst day, yyyy-mm-dd.

emailchef_get_list_contact_counts Get list contact counts

How many contacts a list has by state: active, unsubscribed, bounced, reported. GET /lists/{list_id}/stats/count.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).

emailchef_create_list Create list

WRITE: create a new, empty contact list. Returns the new list id. POST /lists.

ParameterTypeDescription
name *stringList name.
descriptionstringList description.

emailchef_update_list Update list

WRITE: rename a contact list and/or change its description. Only the fields you pass change. PUT /lists/{list_id}.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).
descriptionstringNew description.
namestringNew list name.

emailchef_list_contacts List contacts

List the contacts of one list (id, email, name, added by, subscription date), optionally by state. GET /contacts?list_id=...

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).
limitintegerResults per page, 1-100 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset.
orderstringSort direction (default desc).
order_bystringSort field (default subscription date).
statusstringOnly contacts in this state (default: all).

emailchef_get_contact Get contact

One contact in one list: status, email, name, IP, how it was added, when, and its custom field values. GET /contacts/{contact_id}?list_id=...

ParameterTypeDescription
contact_id *Numeric id (as returned by the list tools).
list_id *Numeric id (as returned by the list tools).

emailchef_create_contact Add contact to a list

WRITE: add a contact (email, name, custom fields) to a list. Only add people who agreed to receive email: an ACTIVE contact will receive the account's campaigns and automations. Returns the contact id and status. POST /contacts.

ParameterTypeDescription
email *string
list_id *Numeric id (as returned by the list tools).
custom_fieldsobjectCustom field values keyed by the field's place_holder (see emailchef_list_custom_fields): a string, or true/false for boolean fields.
first_namestring
last_namestring
statusstringInitial state (default: the account's default, normally ACTIVE).

emailchef_update_contact Update contact

WRITE: change a contact's name, state or custom fields in one list. Only the fields you pass change. Setting the status to ACTIVE re-subscribes someone: only do so with their consent. PUT /contacts/{contact_id}.

ParameterTypeDescription
contact_id *Numeric id (as returned by the list tools).
list_id *Numeric id (as returned by the list tools).
custom_fieldsobjectCustom field values keyed by the field's place_holder (see emailchef_list_custom_fields): a string, or true/false for boolean fields.
first_namestring
last_namestring
statusstring

emailchef_unsubscribe_contact Unsubscribe contact

WRITE: unsubscribe one contact from one list (it stops receiving that list's email). POST /lists/{list_id}/unsubscribe?contact_id=...

ParameterTypeDescription
contact_id *Numeric id (as returned by the list tools).
list_id *Numeric id (as returned by the list tools).

emailchef_import_contacts Import contacts

WRITE: bulk-add or update up to 500 contacts in a list in one call (an existing email is updated). Each contact is an object keyed by field placeholder, e.g. {"email":"a@b.com","firstname":"Ada"}: get the placeholders from emailchef_list_predefined_fields and emailchef_list_custom_fields. Import only people who agreed to receive email. Runs in the background: poll emailchef_get_import_task with the returned id. POST /lists/{list_id}/import.

ParameterTypeDescription
contacts *arrayContacts to import, each keyed by placeholder.
list_id *Numeric id (as returned by the list tools).

emailchef_list_import_tasks List import tasks

List contact import tasks: list, status (DISPATCHED, COMPLETE, FAILED), progress, imported/updated/failed counts. GET /importtasks.

emailchef_get_import_task Get import task

One import task: status, progress, imported/updated/failed counts and any error message. GET /importtasks/{task_id}.

ParameterTypeDescription
task_id *Numeric id (as returned by the list tools).

emailchef_list_predefined_fields List predefined fields

The built-in contact fields (email, first name, ...) with their placeholders. GET /predefinedfields.

emailchef_list_custom_fields List custom fields

The custom contact fields of a list: name, data type, placeholder (the key used when writing contacts), options. GET /lists/{list_id}/customfields.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).

emailchef_list_segments List segments

List the saved segments of a list with how many contacts match each. GET /lists/{list_id}/segments.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).
limitintegerResults per page, 1-100 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset.

emailchef_get_segment Get segment

One segment with its logic and condition groups. GET /lists/{list_id}/segments/{segment_id}.

ParameterTypeDescription
list_id *Numeric id (as returned by the list tools).
segment_id *Numeric id (as returned by the list tools).

emailchef_list_blocked List blocked emails

List the account's blocklist (emails that never receive email): address and reason (MANUAL, UNSUBSCRIBED, COMPLAINT). GET /blockings.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset.
searchstringOnly addresses containing this text.

emailchef_block_emails Block emails

WRITE: add up to 100 addresses to the account blocklist so they never receive email from any list. Reversible with emailchef_unblock_email. POST /blockings?type=MANUAL.

ParameterTypeDescription
emails *arrayAddresses to block.

emailchef_unblock_email Unblock email

WRITE: remove one address from the account blocklist so it can receive email again. Only do this for an address whose owner asked for it. DELETE /blockings/{email}.

ParameterTypeDescription
email *string

emailchef_get_campaign_counts Get campaign counts

How many campaigns the account has by state: drafts, sent, scheduled, archived, failed. GET /campaigns/count.

emailchef_list_campaigns List campaigns

List email campaigns with state, recipients, delivered, unique opens and unique clicks. Without a status filter Emailchef returns only SENT and ARCHIVED campaigns; pass a status to see DRAFT, SCHEDULED, SENDING or FAILED ones. GET /campaigns.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset.
orderstringSort direction (default desc).
order_bystringSort by date (default) or name.
searchstringOnly campaigns whose name contains this text.
statusstringOnly campaigns in this state (default: SENT and ARCHIVED).

emailchef_get_campaign Get campaign

One campaign: name, subject, HTML and text body, sender, reply-to, state, schedule, recipient lists/segments and cached sent/open/click counts. GET /campaigns/{id}.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).

emailchef_list_campaign_engagement List campaign engagement

Per-contact engagement for a sent campaign: who opened, clicked, was delivered, did not open, unsubscribed, complained, or was sent to, with counts and first/last event time. Pick exactly one event. GET /newsletters/{id}/contacts.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).
event *stringWhich engagement slice to list.
limitintegerResults per page, 1-100 (default 25).
offsetintegerRows to skip (default 0). Pass the previous reply's next_offset.
searchstringOnly contacts whose email or name contains this text.

emailchef_create_campaign Create campaign (draft)

WRITE: create a new campaign as a DRAFT (nothing is sent). Needs a verified sender (emailchef_list_senders) and at least one list. To be sendable the HTML body must contain the CAN-SPAM placeholders [[account:business]], [[account:address_1]], [[account:city]], [[account:postal_code]], [[account:country]] and an unsubscribe link <a href="[[unsubscribe_link]]">, otherwise the send ends FAILED. Schedule or send it afterwards. POST /newsletters.

ParameterTypeDescription
list_ids *arrayLists to send to.
name *stringCampaign name (must be unique in the account).
sender_id *A verified sender id from emailchef_list_senders.
subject *stringEmail subject.
html_bodystringHTML body (include the CAN-SPAM placeholders and unsubscribe link).
reply_to_idSender id used for replies.
segment_idOptional segment of the FIRST list to narrow the audience.
text_bodystringPlain-text body.

emailchef_clone_campaign Clone campaign

WRITE: copy an existing campaign into a new DRAFT (nothing is sent). A SENT campaign cannot be cloned (Emailchef answers HTTP 500). Returns the new campaign id. POST /newsletters?clone=1.

ParameterTypeDescription
campaign_id *The campaign to copy.

emailchef_update_campaign Update draft campaign

WRITE: change a DRAFT campaign's name, subject, body, sender, reply-to or recipient lists. Only the fields you pass change: the tool reads the campaign first and sends the complete record back, because Emailchef blanks any omitted field. Refuses a campaign that is not a DRAFT. PUT /newsletters/{id}.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).
html_bodystring
list_idsarrayReplace the recipient lists (any segment is dropped unless segment_id is also passed).
namestring
reply_to_idNumeric id (as returned by the list tools).
segment_idSegment of the first list (only with list_ids).
sender_idNumeric id (as returned by the list tools).
subjectstring
text_bodystring

emailchef_send_test_campaign Send campaign test email

WRITE: email ONE test copy of a campaign to a single address. The campaign state does not change. The sender must be verified. PUT /campaigns/{id}/sendtest.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).
email *stringWhere to send the test copy.

emailchef_schedule_campaign Schedule campaign

WRITE, SENDS EMAIL TO CUSTOMERS LATER: schedule a DRAFT campaign to go out to all its recipients at a date and time. Emailchef timezones are fixed offsets without daylight saving: pick the id (emailchef_list_timezones) whose offset matches the send date. Undo before it starts with emailchef_unschedule_campaign. PUT /campaigns/{id}/schedule.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).
scheduled_time *stringLocal send time in the chosen timezone, YYYY-MM-DD HH:MM:SS (no UTC offset or Z).
timezone_id *Timezone id from emailchef_list_timezones.

emailchef_unschedule_campaign Unschedule campaign

WRITE: cancel the schedule of a SCHEDULED campaign and bring it back to DRAFT. PUT /campaigns/{id}/unschedule.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).

emailchef_send_campaign Send campaign now

WRITE, SENDS EMAIL TO CUSTOMERS NOW AND CANNOT BE UNDONE: start sending a DRAFT (or FAILED) campaign immediately to ALL its recipients and use up plan sends. Check the recipients (emailchef_get_campaign), the sender and the subscription first, ideally after emailchef_send_test_campaign, and send only with the user's explicit go-ahead (confirm must be true). Queued asynchronously: poll emailchef_get_campaign for the final state. PUT /campaigns/{id}/send.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).
confirm *booleanMust be true: the user explicitly approved sending this campaign now.

emailchef_archive_campaign Archive campaign

WRITE: archive a campaign (hidden from the default list; statistics are kept). Reversible with emailchef_unarchive_campaign. PUT /campaigns/{id}/archivecampaign.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).

emailchef_unarchive_campaign Restore archived campaign

WRITE: restore an archived campaign. PUT /campaigns/{id}/unarchivecampaign.

ParameterTypeDescription
campaign_id *Numeric id (as returned by the list tools).

emailchef_send_email Send one email

WRITE, SENDS AN EMAIL NOW AND CANNOT BE UNDONE: send a single email to one recipient from a verified sender and use up plan sends. Pass text_body and/or html_body. The recipient does not need to be a contact. Send only with the user's explicit go-ahead (confirm must be true). POST /sendmail.

ParameterTypeDescription
confirm *booleanMust be true: the user explicitly approved sending this email now.
sender_id *A verified sender id from emailchef_list_senders.
subject *string
to_email *string
html_bodystring
reply_tostring
text_bodystring
to_namestring

emailchef_get_sms_balance Get SMS balance

The account's SMS credit balance and currency. GET /sms/balance.

emailchef_get_sms_status Get SMS status

Delivery status of one sent SMS by message id: recipient, text, sent/done time, parts, price, state and error. GET /sms/status/{messageId}.

ParameterTypeDescription
message_id *stringMessage id returned by emailchef_send_sms.

emailchef_send_sms Send SMS

WRITE, SENDS TEXT MESSAGES NOW, COSTS SMS CREDIT AND CANNOT BE UNDONE: send an SMS to 1-50 phone numbers in international format (e.g. +393331234567). Check emailchef_get_sms_balance first and send only with the user's explicit go-ahead (confirm must be true). Returns a message id per recipient and the remaining balance. POST /sms/send.

ParameterTypeDescription
confirm *booleanMust be true: the user explicitly approved sending these SMS now.
text *stringThe message text.
to *arrayRecipient phone numbers.
fromstringSender name or number (default: the account's).