Emma MCP by usefulapi

v1.14.1
io.usefulapi/emma Checked 3 days ago Published 1 day ago

Read audiences, groups, mailings and campaign results without sending email or changing contacts.

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

emma_list_groups

List the member groups (audience lists) of the Emma account with their active, opted-out and error member counts. Defaults to normal groups; group_types can add test and hidden groups.

ParameterTypeDescription
group_typesarrayg = group (default), t = test, h = hidden.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_group

Get one member group with its member counts (active, opted-out, error).

ParameterTypeDescription
group_id *integerThe group id (member_group_id from emma_list_groups).

emma_list_group_members

List the members of one group (email, status, custom fields). Paged: use next_start for more.

ParameterTypeDescription
group_id *integerThe group id.
include_deletedbooleanInclude archived (deleted) members.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_list_members

List the members (contacts) of the whole audience: id, email, status (a active, o opted out, e error), custom fields, bounce count. Paged: use next_start for more. With count_only the reply is just the number of members.

ParameterTypeDescription
count_onlybooleanReturn only the number of members (count=true) instead of the list.
deleted_onlybooleanOnly archived (deleted) members.
exclude_fieldsbooleanReturn only the base attributes, without custom fields (smaller reply).
include_deletedbooleanAlso include archived (deleted) members.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_member

Get one member by id, with all custom fields, status, SMS status and bounce count.

ParameterTypeDescription
member_id *integerThe member id.
include_deletedbooleanFind the member even if archived.

emma_find_member_by_email

Find one member by email address, with all custom fields and status. A 404 means the address is not in the audience.

ParameterTypeDescription
email *stringThe member's email address.
include_deletedbooleanFind the member even if archived.

emma_get_member_groups

List the groups one member belongs to.

ParameterTypeDescription
member_id *integerThe member id.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_member_mailings

The mailing history of one member: which mailings they were sent and what they did with them.

ParameterTypeDescription
member_id *integerThe member id.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_list_fields

List the custom member fields of the account (shortcut names, display names, types).

ParameterTypeDescription
include_deletedbooleanAlso include deleted fields.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_import

Status and results of one bulk member import (by import id), or, without an id, the list of all imports of the account.

ParameterTypeDescription
import_idintegerThe import id.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_list_mailings

List mailings (campaigns): id, name, subject, sender, status (p pending, a paused, i injecting, s sending, x canceled, c complete, w waiting, u unapproved, f failed), type, recipient count, scheduled time. Defaults to standard and test mailings in all statuses, newest first. Paged: use next_start.

ParameterTypeDescription
include_archivedbooleanInclude archived mailings.
is_scheduledbooleanOnly mailings that have a scheduled send time.
limitintegerResults per page, 1-500 (default 100).
mailing_statusesarrayOnly these statuses (default: all).
mailing_typesarraym standard (default with t), t test, r trigger/automated, s subject-line split test, c content split test.
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_mailing

Get one mailing in full: content (HTML and plain text), recipients (groups, searches, segments), links, schedule, status.

ParameterTypeDescription
mailing_id *integerThe mailing id (mailing_id from emma_list_mailings).
include_segment_namesbooleanAdd the names of the recipient segments.
include_subscription_namesbooleanAdd the names of the recipient subscriptions.

emma_list_mailing_members

List the individual members a mailing was sent to (not groups or searches). Paged: use next_start.

ParameterTypeDescription
mailing_id *integerThe mailing id.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_response_summary

Month-by-month response statistics for the whole account: mailings, sent, delivered, bounced, opened, clicked, forwarded, opt-outs, sign-ups (test mailings excluded).

ParameterTypeDescription
include_deletedbooleanInclude archived mailings.
rangestringDate range YYYY-MM-DD~YYYY-MM-DD, for example 2026-01-01~2026-06-30; one side may be empty.

emma_get_mailing_response

Response summary of one mailing: recipients, sent, delivered, bounced, opened, clicked (unique and total), forwarded, opt-outs, sign-ups.

ParameterTypeDescription
mailing_id *integerThe mailing id.

emma_list_mailing_activity

Who did what with one mailing: members it was sent to (sends), still in the queue (in_progress), delivered or bounced (deliveries), opened (opens), clicked (clicks), forwarded, opted out (optouts) or signed up (signups). Each row has the member's email and timestamp. Paged: use next_start.

ParameterTypeDescription
kind *stringWhich activity to list.
mailing_id *integerThe mailing id.
delivery_typestringOnly for kind=deliveries: filter by delivery outcome (default all).
limitintegerResults per page, 1-500 (default 100).
link_idintegerOnly for kind=clicks: limit to one link (link_id from emma_list_mailing_links).
member_idintegerOnly for kind=clicks: limit to one member.
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_list_searches

List the saved searches (dynamic segments) of the account, with their criteria.

ParameterTypeDescription
include_deletedbooleanAlso include deleted searches.
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.

emma_get_search_members

The members that currently match a saved search. Paged: use next_start.

ParameterTypeDescription
search_id *integerThe saved search id (from emma_list_searches).
limitintegerResults per page, 1-500 (default 100).
startintegerOffset of the first result (default 0). Use next_start from the previous reply.