Skip to content

Docs MCP

MCP tools reference

The name, the description and the arguments of each tool of the BYOMailer MCP server.

The BYOMailer MCP server has 44 tools. This page lists them in the order that tools/list returns them.

A script makes this page from the tool classes in app/Mcp/Tools. Each description is the text that the server sends to the agent.

The hint columns show the MCP tool annotations. A client can use them to ask a person before a call. A dash means that the tool does not set the hint.

Read the MCP overview for the workflow and the error format.

Summary

Tool Title Read only Destructive
list-newsletters-tool List Newsletters Tool Yes -
newsletter-stats-tool Newsletter Stats Tool Yes -
newsletter-content-tool Newsletter Content Tool Yes -
view-newsletter-filters-tool View Newsletter Filters Tool Yes -
calculate-newsletter-contacts-tool Calculate Newsletter Contacts Tool Yes -
create-newsletter-tool Create Newsletter Tool - -
update-newsletter-tool Update Newsletter Tool - -
send-newsletter-test-mail-tool Send Newsletter Test Mail Tool - -
schedule-newsletter Schedule Newsletter Tool - -
list-sequences-tool List Sequences Tool Yes -
create-sequence-tool Create Sequence Tool - -
update-sequence-tool Update Sequence Tool - -
create-sequence-step-tool Create Sequence Step Tool - -
update-sequence-step-tool Update Sequence Step Tool - -
set-sequence-status Set Sequence Status Tool - -
set-sequence-step-status Set Sequence Step Status Tool - -
send-sequence-step-test-mail-tool Send Sequence Step Test Mail Tool - -
sequence-stats-tool Sequence Stats Tool Yes -
sequence-content-tool Sequence Content Tool Yes -
sequence-step-content-tool Sequence Step Content Tool Yes -
sequence-step-stats-tool Sequence Step Stats Tool Yes -
list-sequence-step-contact-mails-tool List Sequence Step Contact Mails Tool Yes -
export-sequence-step-contact-mails-tool Export Sequence Step Contact Mails Tool Yes -
list-contact-mails-tool List Contact Mails Tool Yes -
contact-mail-details-tool Contact Mail Details Tool Yes -
create-tag-tool Create Tag Tool - -
find-contact Find Contact Tool Yes -
list-contacts List Contacts Tool Yes -
create-contact Create Contact Tool - -
add-contact-to-list Add Contact To List Tool - -
add-tags-to-contact Add Tags To Contact Tool - -
remove-contact-from-list Remove Contact From List Tool - -
bulk-update-contacts Bulk Update Contacts Tool - -
list-email-identities-tool List Email Identities Tool Yes -
email-identity-details-tool Email Identity Details Tool Yes -
create-email-identity-tool Create Email Identity Tool - -
refresh-email-identity-status-tool Refresh Email Identity Status Tool - -
update-email-identity-tracking-tool Update Email Identity Tracking Tool - -
list-automations List Automations Tool Yes -
automation-details Automation Details Tool Yes -
view-automation-options View Automation Options Tool Yes -
create-automation Create Automation Tool - -
update-automation Update Automation Tool - -
set-automation-status Set Automation Status Tool - -

list-newsletters-tool

List Newsletters Tool

List the newsletters belonging to the authenticated account, returning each id, title, status, subject and sent date. Use the returned id with the newsletter-stats-tool or newsletter-content-tool tools.

Argument Type Required Values Description
status string No draft, scheduled, queued, ab_testing, sent, failed Optional status filter.
search string No Optional case-insensitive search against the newsletter title and subject.
limit integer No Maximum number of newsletters to return (1-100, default 25).

newsletter-stats-tool

Newsletter Stats Tool

Get the delivery and engagement stats for a single newsletter: totals plus sent, delivered, opened, bounced, unsubscribed and complained counts with delivery/open/unsubscribe rates. Includes A/B variant metrics when A/B testing is enabled. Find the newsletter id with the list-newsletters-tool tool.

Argument Type Required Values Description
newsletter_id integer Yes The id of the newsletter to read stats for.

newsletter-content-tool

Newsletter Content Tool

Get the full content of a single newsletter: title, subject, preview text, sender, html and text body, content variables (the saved default of each {{ variable }}), detected variables (the {{ variables }} that the content uses), and the B variant content when A/B testing is enabled. Find the newsletter id with the list-newsletters-tool tool.

Argument Type Required Values Description
newsletter_id integer Yes The id of the newsletter to read content for.

view-newsletter-filters-tool

View Newsletter Filters Tool

Describe the audience targeting filters available when creating a newsletter for the authenticated account. Returns the filter schema (categories, operators, modes) plus the account's concrete building blocks: tags, lists, topics, attribute keys, countries, timezones and newsletters that can be referenced by id/name in a filter. Use the result to assemble the "filters" array for the calculate-newsletter-contacts-tool and create-newsletter-tool tools.

This tool takes no arguments.

calculate-newsletter-contacts-tool

Calculate Newsletter Contacts Tool

Count how many contacts would receive a newsletter sent to the given audience filters, without creating or sending anything. Pass the same "filters" array you would use with create-newsletter-tool (omit it to count every active contact). Use view-newsletter-filters-tool to discover valid filter values. Returns the recipient count and the sanitized filters that were applied.

Argument Type Required Values Description
filters array of object No Audience targeting filters. Omit to target every active contact.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.

create-newsletter-tool

Create Newsletter Tool

Create a draft newsletter for the authenticated account. Drafts are never sent. Schedule a draft with schedule-newsletter after the user confirms. Optionally attach a sender (email_identity_id), template (email_template_id), audience filters and content_variables (the default value of each {{ variable }}). Use view-newsletter-filters-tool to build the filters array and calculate-newsletter-contacts-tool to preview the audience size first. Returns the new newsletter id and status.

Argument Type Required Values Description
title string No Internal title for the newsletter. Defaults to "Untitled newsletter".
subject string No Email subject line. Supports {{ variable }} template tags.
preview_text string No Inbox preview / preheader text.
html_content string No HTML body of the email. Plain-text is derived automatically.
email_identity_id integer No Verified sender identity id to send from. Required before the draft can be scheduled or test-mailed.
email_template_id integer No Optional email template id to wrap the content.
filters array of object No Audience targeting filters. Omit to target every active contact.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.
content_variables object No Default values of the {{ variable }} placeholders, as an object of variable name to text (maximum 255 characters each). A default fills the placeholder when the contact has no value for it, for example {"checkout_url": "https://example.com/checkout"}. The object replaces all saved defaults. An empty object clears them.

update-newsletter-tool

Update Newsletter Tool

Update a draft or scheduled newsletter for the authenticated account. A scheduled newsletter is live: it sends to real contacts at its scheduled time, so the tool refuses the change until you ask the user to confirm and call it again with confirm_live set to true. A newsletter that is sending or already sent is locked and this tool returns an error. The status never changes here: use schedule-newsletter to schedule or unschedule. Pass content_variables to replace the default value of each {{ variable }}. Only the fields you pass are changed; omitted fields keep their current values. Use view-newsletter-filters-tool to build the filters array and calculate-newsletter-contacts-tool to preview the audience size first. Returns the newsletter id and status.

Argument Type Required Values Description
newsletter_id integer Yes Id of the draft or scheduled newsletter to update. Use list-newsletters-tool to discover ids.
title string No Internal title for the newsletter.
subject string No Email subject line. Supports {{ variable }} template tags.
preview_text string No Inbox preview / preheader text.
html_content string No HTML body of the email. Plain-text is derived automatically.
email_identity_id integer No Verified sender identity id to send from. Required before the draft can be scheduled or test-mailed.
email_template_id integer No Optional email template id to wrap the content.
filters array of object No Audience targeting filters. Omit to target every active contact.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.
content_variables object No Default values of the {{ variable }} placeholders, as an object of variable name to text (maximum 255 characters each). A default fills the placeholder when the contact has no value for it, for example {"checkout_url": "https://example.com/checkout"}. The object replaces all saved defaults. An empty object clears them.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

send-newsletter-test-mail-tool

Send Newsletter Test Mail Tool

Send a one-off test copy of a newsletter to the authenticated user's own email address so they can preview it. The newsletter must already have a sender identity attached. Does not send to the newsletter audience. Find the newsletter id with list-newsletters-tool or create-newsletter-tool.

Argument Type Required Values Description
newsletter_id integer Yes The id of the newsletter to send a test copy of.

schedule-newsletter

Schedule Newsletter Tool

Schedule a draft newsletter to send at a future time (action "schedule"), move a scheduled newsletter to a new time (action "schedule"), or cancel the schedule and return it to draft (action "unschedule"). This affects real contacts, so the first call only returns a preview: the change, the send time and the number of recipients. Nothing is saved. Show the preview to the user, and after the user confirms, call the tool again with the same arguments and confirm_live set to true. Never set confirm_live without that confirmation. If the send started before the change, the result has applied set to false, and the newsletter does not change. The dashboard runs the same checks before scheduling: subject and body, the SES account status, and the SES permissions. A missing {{ unsubscribe_url }} link or a missing postal address never blocks the schedule. The preview and the result list them in warnings. Show the warnings to the user. Set the sender first with update-newsletter-tool. This tool never sends a newsletter immediately.

Argument Type Required Values Description
newsletter_id integer Yes Id of the newsletter. Use list-newsletters-tool to discover ids.
action string Yes schedule, unschedule "schedule" sets or moves the send time. "unschedule" returns a scheduled newsletter to draft.
scheduled_at string No Required for "schedule". The send time in ISO 8601 with a UTC offset, for example 2026-11-02T09:00:00-05:00. It must be in the future.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

list-sequences-tool

List Sequences Tool

List the sequences belonging to the authenticated account, returning each id, name, status, step count and contact count. Use the returned id with the sequence-stats-tool or sequence-content-tool tools.

Argument Type Required Values Description
status string No draft, live, paused Optional status filter.
search string No Optional case-insensitive search against the sequence name.
limit integer No Maximum number of sequences to return (1-100, default 25).

create-sequence-tool

Create Sequence Tool

Create a draft sequence (automated drip campaign) for the authenticated account. Sequences are always created as drafts. Activate a sequence with set-sequence-status after the user confirms. Pass filters to limit which contacts the sequence targets (use view-newsletter-filters-tool to build them). Pass content_variables to set the default value of each {{ variable }} that the steps use, for example a fallback checkout_url. Add steps with create-sequence-step-tool and edit the sequence later with update-sequence-tool. Returns the new sequence id, status, saved filters and content variables.

Argument Type Required Values Description
name string Yes Name for the sequence.
filters array of object No Sequence filters. Only contacts who match them receive the sequence. Use view-newsletter-filters-tool to build the array. Omit to target every active contact.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.
content_variables object No Default values of the {{ variable }} placeholders, as an object of variable name to text (maximum 255 characters each). A default fills the placeholder when the contact has no value for it, for example {"checkout_url": "https://example.com/checkout"}. The object replaces all saved defaults. An empty object clears them.

update-sequence-tool

Update Sequence Tool

Update a sequence of any status. A live sequence sends to real contacts now, so the tool refuses the change until you ask the user to confirm and call it again with confirm_live set to true. Draft and paused sequences need no confirmation. The status never changes here: use set-sequence-status. Only the fields you pass are changed; omitted fields keep their current values. Pass filters to replace the sequence filters (an empty array clears them). Filters and a saved segment are exclusive, so passing filters removes a saved segment from the sequence. Pass content_variables to replace the default values of the {{ variables }} (an empty object clears them). Find sequence ids with list-sequences-tool and read the current filters and content variables with sequence-content-tool. Returns the sequence id, status, saved filters and content variables.

Argument Type Required Values Description
sequence_id integer Yes Id of the sequence to update. Use list-sequences-tool to discover sequence ids.
name string No New name for the sequence.
filters array of object No Sequence filters. Only contacts who match them receive the sequence. Use view-newsletter-filters-tool to build the array. The array replaces the current filters. Pass an empty array to clear them.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.
content_variables object No Default values of the {{ variable }} placeholders, as an object of variable name to text (maximum 255 characters each). A default fills the placeholder when the contact has no value for it, for example {"checkout_url": "https://example.com/checkout"}. The object replaces all saved defaults. An empty object clears them.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

create-sequence-step-tool

Create Sequence Step Tool

Add a draft step to an existing sequence. Steps are always created as drafts. Activate a step with set-sequence-step-status after the user confirms. Set how long after the previous step it sends with delay_type (days or hours) and delay_days. Optionally pass step filters: a contact who does not match them skips this step only. Find the sequence id with list-sequences-tool and a verified sender with view-newsletter-filters-tool. Returns the new step id and status.

Argument Type Required Values Description
sequence_id integer Yes The id of the sequence to add the step to.
delay_type string Yes Unit for the delay before this step sends: "days" or "hours".
delay_days integer Yes How many days (max 365) or hours (max 8760) after the previous step to send. Use 0 to send immediately on enrollment for the first step.
email_identity_id integer Yes Verified sender identity id to send this step from.
subject string No Email subject line. Supports {{ variable }} template tags.
preview_text string No Inbox preview / preheader text.
html_content string No HTML body of the step. Plain-text is derived automatically.
filters array of object No Step filters. A contact who does not match them skips only this step and moves on to the next step. The sequence filters still apply first. Use view-newsletter-filters-tool to build the array. Omit to send this step to every contact in the sequence.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.

update-sequence-step-tool

Update Sequence Step Tool

Update a step of a sequence, of any status. A live step sends to real contacts, so the tool refuses the change until you ask the user to confirm and call it again with confirm_live set to true. Draft and paused steps need no confirmation. The status never changes here: use set-sequence-step-status. Only the fields you pass are changed; omitted fields keep their current values. Pair delay_type and delay_days to reschedule the step. Pass filters to replace the step filters (an empty array clears them). Find step ids with sequence-content-tool and a verified sender with view-newsletter-filters-tool. Returns the step id and status.

Argument Type Required Values Description
sequence_step_id integer Yes Id of the step to update. Use sequence-content-tool to discover step ids.
delay_type string No Unit for the delay before this step sends: "days" or "hours". Required together with delay_days.
delay_days integer No How many days (max 365) or hours (max 8760) after the previous step to send. Required together with delay_type.
email_identity_id integer No Verified sender identity id to send this step from.
email_template_id integer No Optional email template id to wrap the content. Pass null to remove the template.
subject string No Email subject line. Supports {{ variable }} template tags.
preview_text string No Inbox preview / preheader text.
html_content string No HTML body of the step. Plain-text is derived automatically.
filters array of object No Step filters. A contact who does not match them skips only this step and moves on to the next step. The sequence filters still apply first. Use view-newsletter-filters-tool to build the array. Pass an empty array to clear the filters.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

set-sequence-status

Set Sequence Status Tool

Activate (status "live") or pause (status "paused") a sequence. This affects real contacts, so the first call only returns a preview: the change, the enrolled contacts, the pending mails, the live steps and the live automations that add contacts to the sequence. Nothing is saved. Show the preview to the user, and after the user confirms, call the tool again with the same arguments and confirm_live set to true. Never set confirm_live without that confirmation. A sequence sends only through its live steps, so activate the steps with set-sequence-step-status too. The dashboard runs the same checks: activation fails when the account cannot send email. A live step without a {{ unsubscribe_url }} link or a missing postal address never blocks the activation. The preview and the result list them in warnings. Show the warnings to the user. Find sequence ids with list-sequences-tool.

Argument Type Required Values Description
sequence_id integer Yes Id of the sequence. Use list-sequences-tool to discover sequence ids.
status string Yes live, paused "live" activates the sequence. "paused" stops it.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

set-sequence-step-status

Set Sequence Step Status Tool

Activate (status "live") or pause (status "paused") one step of a sequence. This affects real contacts, so the first call only returns a preview: the change, the contacts enrolled in the sequence and the pending mails of this step. Nothing is saved. Show the preview to the user, and after the user confirms, call the tool again with the same arguments and confirm_live set to true. Never set confirm_live without that confirmation. The dashboard runs the same checks: activation fails when the account cannot send email or the step has no subject or body. A missing {{ unsubscribe_url }} link or a missing postal address never blocks the activation. The preview and the result list them in warnings. Show the warnings to the user. A live step sends only while its sequence is live. Find step ids with sequence-content-tool.

Argument Type Required Values Description
sequence_step_id integer Yes Id of the sequence step. Use sequence-content-tool to discover step ids.
status string Yes live, paused "live" activates the step. "paused" stops it.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

send-sequence-step-test-mail-tool

Send Sequence Step Test Mail Tool

Send a one-off test copy of a single sequence step to the authenticated user's own email address so they can preview it. The step must already have a sender identity attached. Does not send to the sequence audience and does not start or advance the sequence for anyone. Find the sequence and step ids with list-sequences-tool and sequence-content-tool.

Argument Type Required Values Description
sequence_id integer Yes The id of the sequence the step belongs to.
step_id integer Yes The id of the sequence step to send a test copy of.

sequence-stats-tool

Sequence Stats Tool

Get the sequence-level stats for a single sequence: contact, unsubscribe and click totals plus aggregate mail metrics (sent/delivered/opened/bounced rates) across all steps. For a per-step breakdown use the sequence-step-stats-tool tool. Find the sequence id with the list-sequences-tool tool.

Argument Type Required Values Description
sequence_id integer Yes The id of the sequence to read stats for.

sequence-content-tool

Sequence Content Tool

Get the full content of a single sequence and every one of its steps: name, status, content variables (the saved default of each {{ variable }}), detected variables (the {{ variables }} that the steps use), and for each step the delay, subject, preview text, html and text body. Find the sequence id with the list-sequences-tool tool.

Argument Type Required Values Description
sequence_id integer Yes The id of the sequence to read content for.

sequence-step-content-tool

Sequence Step Content Tool

Get the full content of a single sequence step: delay, status, step filters, subject, preview text, html and text body, sender identity and template. Find the sequence and step ids with the list-sequences-tool and sequence-content-tool tools.

Argument Type Required Values Description
sequence_id integer Yes The id of the sequence the step belongs to.
step_id integer Yes The id of the sequence step to read content for.

sequence-step-stats-tool

Sequence Step Stats Tool

Get the stats for a single sequence step: contacts reached, unsubscribe and click totals, plus mail metrics (sent/delivered/opened/bounced rates) for contacts whose furthest progress is this step. Find the sequence and step ids with the list-sequences-tool and sequence-content-tool tools.

Argument Type Required Values Description
sequence_id integer Yes The id of the sequence the step belongs to.
step_id integer Yes The id of the sequence step to read stats for.

list-sequence-step-contact-mails-tool

List Sequence Step Contact Mails Tool

List contact emails for one sequence step with filters, sorting and pagination. Defaults to contacts currently at this step, matching sequence-step-stats-tool; set current_only false to include all historical mails. Find sequence and step ids with list-sequences-tool and sequence-content-tool.

Argument Type Required Values Description
contact_id integer No Only mails for this contact.
status string No pending, sent, delivered, opened, bounced, rejected, complained, unsubscribed, failed, skipped Exact stored delivery status.
filter string No all, pending, sent, delivered, opened, clicked, bounced, rejected, complained, unsubscribed, failed, skipped Delivery or engagement event filter, default all. Events match timestamps, so opened also includes mails later clicked or unsubscribed.
search string No Search the contact email, name, or mail subject.
sent_after string No Inclusive earliest sent timestamp (ISO 8601).
sent_before string No Inclusive latest sent timestamp (ISO 8601).
sort string No id, email, name, subject, status, scheduled_at, sent_at, delivered_at, opened_at, clicked_at, bounced_at, rejected_at, complained_at, unsubscribed_at, created_at Sort column, default id. Ties are ordered by mail id.
direction string No asc, desc Sort direction, default desc.
sequence_id integer Yes The sequence id.
step_id integer Yes The step id belonging to this sequence.
current_only boolean No Default true: contacts currently at this step, matching step stats. Set false for all historical mails, including completed or advanced contacts.
page integer No Page number (minimum 1, default 1).
per_page integer No Page size (1-100, default 25).

export-sequence-step-contact-mails-tool

Export Sequence Step Contact Mails Tool

Export all historical contact emails matching the sequence step filters and sorting as CSV, without pagination, including contacts who advanced or completed the sequence. Returns an authenticated download URL; GET it with the same Bearer token used for MCP.

Argument Type Required Values Description
contact_id integer No Only mails for this contact.
status string No pending, sent, delivered, opened, bounced, rejected, complained, unsubscribed, failed, skipped Exact stored delivery status.
filter string No all, pending, sent, delivered, opened, clicked, bounced, rejected, complained, unsubscribed, failed, skipped Delivery or engagement event filter, default all. Events match timestamps, so opened also includes mails later clicked or unsubscribed.
search string No Search the contact email, name, or mail subject.
sent_after string No Inclusive earliest sent timestamp (ISO 8601).
sent_before string No Inclusive latest sent timestamp (ISO 8601).
sort string No id, email, name, subject, status, scheduled_at, sent_at, delivered_at, opened_at, clicked_at, bounced_at, rejected_at, complained_at, unsubscribed_at, created_at Sort column, default id. Ties are ordered by mail id.
direction string No asc, desc Sort direction, default desc.
sequence_id integer Yes The sequence id.
step_id integer Yes The step id belonging to this sequence.

list-contact-mails-tool

List Contact Mails Tool

List contact emails for the authenticated account with contact, newsletter, sequence, step, status, engagement, search and sent-date filters, sorting and pagination. Returns recipients, mail ids and delivery/engagement timestamps. Use contact-mail-details-tool to inspect a mail body and clicks.

Argument Type Required Values Description
contact_id integer No Only mails for this contact.
status string No pending, sent, delivered, opened, bounced, rejected, complained, unsubscribed, failed, skipped Exact stored delivery status.
filter string No all, pending, sent, delivered, opened, clicked, bounced, rejected, complained, unsubscribed, failed, skipped Delivery or engagement event filter, default all. Events match timestamps, so opened also includes mails later clicked or unsubscribed.
search string No Search the contact email, name, or mail subject.
sent_after string No Inclusive earliest sent timestamp (ISO 8601).
sent_before string No Inclusive latest sent timestamp (ISO 8601).
sort string No id, email, name, subject, status, scheduled_at, sent_at, delivered_at, opened_at, clicked_at, bounced_at, rejected_at, complained_at, unsubscribed_at, created_at Sort column, default id. Ties are ordered by mail id.
direction string No asc, desc Sort direction, default desc.
newsletter_id integer No Only mails for this newsletter.
sequence_id integer No Only mails across this sequence.
step_id integer No Only historical mails for this sequence step.
page integer No Page number (minimum 1, default 1).
per_page integer No Page size (1-100, default 25).

contact-mail-details-tool

Contact Mail Details Tool

Show one contact email, including recipient, delivery and engagement timestamps, failure reason, template data, message content and the latest 100 clicks. Find contact_mail_id with list-contact-mails-tool or list-sequence-step-contact-mails-tool. Message content is the stored template, not a snapshot of the rendered sent email.

Argument Type Required Values Description
contact_mail_id integer Yes The contact mail id to inspect.

create-tag-tool

Create Tag Tool

Create a tag for the authenticated account. Tags label contacts and drive newsletter/sequence audience filters. Tag names are unique per account — creating a duplicate name returns a validation error. Returns the new tag id and name.

Argument Type Required Values Description
name string Yes Name for the tag. Must be unique within the account.

find-contact

Find Contact Tool

Look up one contact in the authenticated account by exact email. Returns the contact even when they are unsubscribed, or contact null when this account has no such email. The result includes the tags, lists, and sequences of the contact. To list or filter many contacts, use list-contacts.

Argument Type Required Values Description
email string Yes Exact email address to look up in this account.

list-contacts

List Contacts Tool

List the contacts of the authenticated account, oldest id first. Filter with "filters" in the view-newsletter-filters-tool format (tags, lists, topics, attributes, dates, engagement, location) and with "search" on the name or email. Unsubscribed contacts are excluded unless include_unsubscribed is true. Each contact includes its tag names, list ids and custom attributes. To read the next page, send next_after_id from the result as after_id. The cursor stays correct when you change the listed contacts between pages, so use this tool to collect the ids for bulk-update-contacts.

Argument Type Required Values Description
filters array of object No Audience filters in the view-newsletter-filters-tool format. Omit to list every contact.
filters[].connector string No and, or How this filter joins the previous one. Defaults to "and".
filters[].category string No attributes, tags, lists, topics, date, engagement, location The filter category.
filters[].mode string No all, any, none Match mode for attributes/tags/lists/topics (location uses any|none).
filters[].operator string No Operator for date or engagement filters.
filters[].field string No Field for location filters: country or timezone.
filters[].values array No Filter values. Shape depends on category — see view-newsletter-filters-tool.
search string No Optional case-insensitive search on the contact name or email.
include_unsubscribed boolean No Include unsubscribed contacts. Default false.
after_id integer No Return only contacts with an id above this value. Send next_after_id from the previous page.
per_page integer No Page size (1-100, default 25).

create-contact

Create Contact Tool

Create a contact for the authenticated account, or reuse the contact that already has this email. Optional name, tag names, and one list. A new blacklisted email is rejected. An existing email keeps attributes you do not send. Tags are added and never removed — removing a tag is not available through this API. When list_id is set, the contact is added to that list and an unsubscribe that an admin made is cleared; a list that requires opt-in queues the opt-in email. Without list_id, the subscription never changes. Find list ids with view-newsletter-filters-tool. Returns the contact id and whether a new row was created.

Argument Type Required Values Description
email string Yes Email address. Reuses the account contact with this exact email when one exists.
name string No Optional display name. Omitted leaves the current name unchanged.
tags array of string No Optional tag names to add. Unknown names are created. Existing tags on the contact are kept. To remove tags, use bulk-update-contacts.
list_id integer No Optional mailing list id. Find ids with view-newsletter-filters-tool. A list that requires opt-in queues the opt-in email.

add-contact-to-list

Add Contact To List Tool

Add an existing contact to a mailing list without removing their other lists. A list that requires opt-in queues the opt-in email and does not mark the contact opted in. Calling it again for a list they already belong to does not send another subscription event. To change many contacts at once, use bulk-update-contacts. Find the contact with find-contact and the list id with view-newsletter-filters-tool.

Argument Type Required Values Description
contact_id integer Yes Id of the contact. Find it with find-contact.
list_id integer Yes Id of the mailing list. Find it with view-newsletter-filters-tool.

add-tags-to-contact

Add Tags To Contact Tool

Add tags to an existing contact by name. Tags already on the contact stay. A name that does not exist yet is created for this account. create-tag-tool remains the strict way to create a tag and still errors on a duplicate name. To remove tags, or to change many contacts at once, use bulk-update-contacts. Find the contact with find-contact.

Argument Type Required Values Description
contact_id integer Yes Id of the contact. Find it with find-contact.
tags array of string Yes Tag names to add. Unknown names are created. Existing tags on the contact are kept. To remove tags, use bulk-update-contacts.

remove-contact-from-list

Remove Contact From List Tool

Remove a contact from one mailing list. Their other lists stay. The contact row is not deleted. Find the contact with find-contact and the list id with view-newsletter-filters-tool.

Argument Type Required Values Description
contact_id integer Yes Id of the contact. Find it with find-contact.
list_id integer Yes Id of the mailing list to remove them from.

bulk-update-contacts

Bulk Update Contacts Tool

Update up to 100 existing contacts in one call. Each item names one contact by contact_id or by exact email, and gives its own changes: name, add_tags, remove_tags, set_attributes, remove_attributes, add_to_lists and remove_from_lists. Only the fields you send change. Unknown tag names in add_tags are created. Unknown tag names in remove_tags are ignored. set_attributes merges into the custom attributes of the contact. Adding a contact to a list that requires opt-in queues the opt-in email. Tag, list and attribute changes run the live automations of the account. Items are independent: a failed item does not stop the other items, and the result reports each item as updated or failed. Find the contacts with list-contacts and the list ids with view-newsletter-filters-tool.

Argument Type Required Values Description
contacts array of object Yes The contacts to update (1-100). Each item has its own changes.
contacts[].contact_id integer No Id of the contact. Send contact_id or email.
contacts[].email string No Exact email of the contact. Used only when contact_id is not sent.
contacts[].name string No New display name. Send null to clear it.
contacts[].add_tags array of string No Tag names to add. Unknown names are created. Existing tags stay.
contacts[].remove_tags array of string No Tag names to remove. Unknown names are ignored.
contacts[].set_attributes object No Custom attributes to set, as {"name": value}. A value is a string (maximum 255 characters), a number or a boolean. Attributes that you do not send stay. The names "name" and "email" are reserved.
contacts[].remove_attributes array of string No Custom attribute names to remove from the contact.
contacts[].add_to_lists array of integer No List ids to add the contact to. A list that requires opt-in queues the opt-in email.
contacts[].remove_from_lists array of integer No List ids to remove the contact from.

list-email-identities-tool

List Email Identities Tool

List the sender identities (verified sending domains) of the authenticated account, returning each id, email, name, domain, verification status, DKIM and MAIL FROM status and tracking flags. Use the returned id with email-identity-details-tool, refresh-email-identity-status-tool or update-email-identity-tracking-tool. Only identities with identity_status "verified" can send mail.

Argument Type Required Values Description
identity_status string No pending, verifying, verified, failed Optional verification status filter.
search string No Optional case-insensitive search against the identity email, name and domain.
limit integer No Maximum number of identities to return (1-100, default 25).

email-identity-details-tool

Email Identity Details Tool

Show a single sender identity in full: verification status, MAIL FROM subdomain, AWS region, custom link domain, tracking flags and the DNS records (DKIM CNAMEs, MAIL FROM MX/TXT and DMARC TXT) the domain owner must publish, each with a verified flag. Use it to guide someone through DNS setup. Find the id with list-email-identities-tool.

Argument Type Required Values Description
email_identity_id integer Yes The id of the sender identity.

create-email-identity-tool

Create Email Identity Tool

Create a sender identity for the authenticated account. Registers the email's domain in the account's own AWS SES, sets up a MAIL FROM subdomain (default "mas.") and a per-identity configuration set, and returns the DNS records the domain owner must publish before the identity can verify. The account must already have AWS credentials configured in the dashboard. Set existing_aws_identity to true to import a domain that is already verified in SES instead of creating it. After the DNS records are published, call refresh-email-identity-status-tool to check verification.

Argument Type Required Values Description
email string Yes Sender email address, for example "hello@example.com". Its domain is registered in SES.
name string No Optional display name for the sender.
existing_aws_identity boolean No Set to true when the domain is already registered in the account's SES and should be imported instead of created. Defaults to false.
open_tracking_enabled boolean No Track opens for mail sent from this identity. Defaults to true.
click_tracking_enabled boolean No Track clicks for mail sent from this identity. Defaults to true.
mail_from_subdomain string No Optional custom MAIL FROM subdomain, lowercase, for example "bounce.example.com". Defaults to "mas.".

refresh-email-identity-status-tool

Refresh Email Identity Status Tool

Ask AWS SES for the current verification state of a sender identity and sync it into the account: identity status, DKIM status and MAIL FROM status, plus the verified flag on each DNS record. Call it after the domain owner publishes the DNS records returned by create-email-identity-tool or email-identity-details-tool. Find the id with list-email-identities-tool.

Argument Type Required Values Description
email_identity_id integer Yes The id of the sender identity to refresh.

update-email-identity-tracking-tool

Update Email Identity Tracking Tool

Turn open tracking and click tracking on or off for a sender identity. Updates the identity's SES configuration set so future mail from this identity reports (or stops reporting) opens and clicks. Both flags are required. Find the id with list-email-identities-tool.

Argument Type Required Values Description
email_identity_id integer Yes The id of the sender identity.
open_tracking_enabled boolean Yes Whether to track opens.
click_tracking_enabled boolean Yes Whether to track clicks.

list-automations

List Automations Tool

List the automations belonging to the authenticated account, returning each id, name, type, live flag, trigger condition and actions. Condition and action values are raw ids — use automation-details to see them with names. Use the returned id with automation-details or update-automation.

Argument Type Required Values Description
is_live boolean No Optional filter: true for live automations, false for paused ones.
search string No Optional case-insensitive search against the automation name.
limit integer No Maximum number of automations to return (1-100, default 25).

automation-details

Automation Details Tool

Show one automation of the authenticated account: name, type, live flag, trigger condition and actions. Each list, tag or sequence id in the condition and actions comes with its name, or null when the item no longer exists. Find automation ids with list-automations.

Argument Type Required Values Description
automation_id integer Yes Id of the automation. Use list-automations to discover ids.

view-automation-options

View Automation Options Tool

Describe the building blocks of an automation for the authenticated account: the trigger condition types, the action types, and the lists, tags, sequences and contact attributes that a condition or action can reference by id or name. Use the result to assemble the "condition" and "actions" for create-automation and update-automation. A paused automation can use a draft sequence in an "add_sequence" action. The automation can go live only when that sequence is live.

This tool takes no arguments.

create-automation

Create Automation Tool

Create an automation for the authenticated account: when the trigger condition happens to a contact, the actions run on that contact. Automations are always created paused (is_live false). A paused automation can add contacts to a draft sequence. Switch it on with set-automation-status after its sequences are live. Call view-automation-options first to find the condition types, action types and the list, tag and sequence ids. Returns the new automation.

Argument Type Required Values Description
name string Yes Name for the automation.
type string No simple Automation type. The only type is "simple".
condition object Yes The trigger. Use view-automation-options to find the ids.
condition.type string No contact_added_to_list, removed_from_list, tag_added, removed_tag, added_to_sequence, sequence_finished, attribute_changed The event that starts the automation.
condition.value string No The list, tag or sequence id of the event. For "attribute_changed" with operator "changed_to", the new attribute value.
condition.attribute string No Only for "attribute_changed": the contact attribute name.
condition.operator string No changed_to, changed Only for "attribute_changed": "changed_to" needs a value, "changed" matches any change.
actions array of object Yes What happens to the contact, in order.
actions[].type string No add_tag, add_list, remove_tag, remove_list, add_sequence What to do with the contact.
actions[].value integer No The tag, list or sequence id. A paused automation can add contacts to a draft sequence. The sequence must be live before the automation goes live.

update-automation

Update Automation Tool

Update an automation of the authenticated account. A live automation (is_live true) runs on contacts now, so the tool refuses the change until you ask the user to confirm and call it again with confirm_live set to true. Paused automations need no confirmation. The live flag never changes here: use set-automation-status. A paused automation can point an "add_sequence" action to a draft sequence. A live automation needs live sequences. Only the fields you pass are changed: a passed condition replaces the whole condition and a passed actions array replaces all actions. Use view-automation-options for the ids. Returns the updated automation.

Argument Type Required Values Description
automation_id integer Yes Id of the automation to update. Use list-automations to discover ids.
name string No Name for the automation.
type string No simple Automation type. The only type is "simple".
condition object No The trigger. Use view-automation-options to find the ids.
condition.type string No contact_added_to_list, removed_from_list, tag_added, removed_tag, added_to_sequence, sequence_finished, attribute_changed The event that starts the automation.
condition.value string No The list, tag or sequence id of the event. For "attribute_changed" with operator "changed_to", the new attribute value.
condition.attribute string No Only for "attribute_changed": the contact attribute name.
condition.operator string No changed_to, changed Only for "attribute_changed": "changed_to" needs a value, "changed" matches any change.
actions array of object No What happens to the contact, in order.
actions[].type string No add_tag, add_list, remove_tag, remove_list, add_sequence What to do with the contact.
actions[].value integer No The tag, list or sequence id. A paused automation can add contacts to a draft sequence. The sequence must be live before the automation goes live.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

set-automation-status

Set Automation Status Tool

Switch an automation on (is_live true) or off (is_live false). This affects real contacts, so the first call only returns a preview: the change, the condition, the actions and the sequences the automation adds contacts to. Nothing is saved. Show the preview to the user, and after the user confirms, call the tool again with the same arguments and confirm_live set to true. Never set confirm_live without that confirmation. A live automation runs on matching events from now on. It does not run on contacts that matched before. The dashboard runs the same check: an automation with an "add_sequence" action can go live only when that sequence is live, because a live automation drops contacts it cannot enroll. Find automation ids with list-automations.

Argument Type Required Values Description
automation_id integer Yes Id of the automation. Use list-automations to discover ids.
is_live boolean Yes true switches the automation on. false pauses it.
confirm_live boolean No Set to true only after the user explicitly confirms the change to a live record. A live record affects real contacts now. Leave it out for drafts.

Edit this page on GitHub