Mail Blaze MCP by usefulapi
v1.20.1Manage Mail Blaze lists, subscribers, templates, campaigns and reports; send transactional email.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mailblaze_list_lists List mailing lists
List the account's mailing lists (name, uid, subscriber counts, defaults). Use the list uid in the other tools. Paged: page + per_page.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
per_page | integer | Lists per page (default set by Mail Blaze). |
mailblaze_get_list Get a mailing list
Get one mailing list by its uid: general settings, default sender, company details and counts.
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | List uid from mailblaze_list_lists. |
mailblaze_list_list_fields List a list's custom fields
List the fields of a mailing list (label, tag, type, required). The tags (EMAIL, FNAME, LNAME, custom ones) are the keys used when adding or updating subscribers.
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
mailblaze_list_segments List a list's segments
List the segments defined on a mailing list (uid, name). A segment uid can be used when creating a campaign.
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
mailblaze_list_subscribers List subscribers
List the subscribers of a mailing list (sets of 10 per page; use page to go on). Contains personal data (emails, names).
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
mailblaze_get_subscriber Get a subscriber
Get one subscriber of a list by subscriber uid (status, fields, dates).
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
subscriber_uid * | string | Subscriber uid from mailblaze_list_subscribers or mailblaze_find_subscriber_by_email. |
mailblaze_find_subscriber_by_email Find a subscriber by email
Look up a subscriber in one list by email address. Returns the subscriber (with its uid) or a not-found error.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
list_uid * | string |
mailblaze_add_subscriber Add a subscriber
WRITE, MAY SEND A CONFIRMATION EMAIL: add one subscriber to a mailing list. Depending on the list's settings Mail Blaze may send the person a confirmation (double opt-in) email. Only add people who agreed to receive your email. An email that is already on the list answers with a conflict error.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
list_uid * | string | |
custom_fields | object | Custom field values keyed by the field's tag (see mailblaze_list_list_fields), e.g. {"PHONE": "+1 555 0100"}. |
first_name | string | Sets the FNAME field. |
last_name | string | Sets the LNAME field. |
mailblaze_add_subscribers_bulk Add or update subscribers in bulk
WRITE, MAY SEND CONFIRMATION EMAILS: add up to 100 subscribers to a mailing list in one request; an email already on the list is updated instead. Depending on the list's settings Mail Blaze may send confirmation emails. Only add people who agreed to receive your email.
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
subscribers * | array | 1 to 100 subscribers. |
mailblaze_update_subscriber Update a subscriber
WRITE: update a subscriber's name or custom fields. Pass the subscriber's current email (Mail Blaze requires it) plus only the values to change. Does not change subscription status.
| Parameter | Type | Description |
|---|---|---|
email * | string | The subscriber's email (Mail Blaze requires it on update). |
list_uid * | string | |
subscriber_uid * | string | |
custom_fields | object | Custom field values keyed by the field's tag (see mailblaze_list_list_fields), e.g. {"PHONE": "+1 555 0100"}. |
first_name | string | |
last_name | string |
mailblaze_unsubscribe_subscriber Unsubscribe a subscriber
WRITE: set a subscriber's status to unsubscribed so they receive no more campaigns from this list. By default Mail Blaze also adds the address to the account's local blacklist. Do this only when the person asked to stop (or a data-protection request requires it). The subscriber record is kept.
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
subscriber_uid * | string |
mailblaze_resubscribe_subscriber Resubscribe a subscriber
WRITE: set a previously unsubscribed subscriber back to subscribed so campaigns reach them again. Only do this when the person asked to be re-added (consent).
| Parameter | Type | Description |
|---|---|---|
list_uid * | string | |
subscriber_uid * | string |
mailblaze_list_templates List email templates
List the account's email templates (uid, name). A template uid is needed to create a campaign.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
mailblaze_get_template Get an email template
Get one email template by uid (name and content).
| Parameter | Type | Description |
|---|---|---|
template_uid * | string |
mailblaze_create_template Create an email template
WRITE: create an email template from HTML (the tool base64-encodes it). Mail Blaze requires the HTML to contain an unsubscribe link. Sends nothing.
| Parameter | Type | Description |
|---|---|---|
html * | string | The full HTML of the email, including an unsubscribe link. |
name * | string |
mailblaze_list_campaigns List campaigns
List the account's email campaigns (uid, name, status, dates). Use the campaign uid for details and reports.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
mailblaze_get_campaign Get a campaign
Get one campaign by uid: sender, subject, list, template, status and schedule.
| Parameter | Type | Description |
|---|---|---|
campaign_uid * | string |
mailblaze_create_campaign Create and schedule a campaign
WRITE, SENDS EMAIL TO PEOPLE: create a campaign for a mailing list (or one of its segments) from an existing template and schedule it for send_at. Once it goes out it reaches every subscriber of the list or segment, may use sending credit and cannot be recalled. Confirm the list, segment, subject, template and send time with the user before calling. Needs a template uid (mailblaze_list_templates) and a list uid (mailblaze_list_lists).
| Parameter | Type | Description |
|---|---|---|
from_email * | string | Sender address; it must be a verified sender in Mail Blaze. |
from_name * | string | |
list_uid * | string | |
name * | string | Internal campaign name. |
reply_to * | string | |
send_at * | string | When to send, 'YYYY-MM-DD HH:MM:SS' (interpreted by Mail Blaze in the account's time zone). |
subject * | string | |
template_uid * | string | |
segment_uid | string | Send only to this segment of the list. |
mailblaze_get_campaign_summaries Get campaign report summaries
Bulk report summary (sent, opens, clicks, bounces, unsubscribes) for up to 50 campaigns in one call. Read-only (it is a POST in the API only because of the id list).
| Parameter | Type | Description |
|---|---|---|
campaign_uids * | array | 1 to 50 campaign uids. |
mailblaze_get_campaign_inbox_breakdown Get a campaign's inbox breakdown
Inbox-provider breakdown (e.g. Gmail, Outlook, Yahoo) of a campaign's delivery.
| Parameter | Type | Description |
|---|---|---|
campaign_uid * | string |
mailblaze_list_campaign_events List a campaign's opens, clicks, bounces or unsubscribes
List the individual events of a campaign by kind: opens, clicks, bounces or unsubscribes. Cursor-paged: pass the reply's next_cursor back until it is null. For very large campaigns Mail Blaze answers 202 with a job_id; check it with mailblaze_get_report_job.
| Parameter | Type | Description |
|---|---|---|
campaign_uid * | string | |
kind * | string | |
cursor | string | The next_cursor from the previous reply, passed back exactly as returned. Omit for the first page. |
limit | integer | Events per page (default 100, max 1000). |
mailblaze_get_subscriber_activity Get a subscriber's activity
Email activity (sends, opens, clicks, bounces) of one subscriber by email address, optionally limited to one list. Cursor-paged.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
cursor | string | The next_cursor from the previous reply, passed back exactly as returned. Omit for the first page. |
limit | integer | Events per page (default 100, max 1000). |
list_uid | string |
mailblaze_get_report_job Get a report job's status
Status (and result when finished) of an asynchronous report job, as returned in a 202 reply with a job_id.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
mailblaze_list_transactional_emails List transactional emails
List the transactional emails sent through the account (uid, recipient, subject, status). Paged.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1 (results come in sets of 10; keep going until a page comes back empty). |
mailblaze_get_transactional_email Get a transactional email
Get one transactional email by uid: recipient, subject, status and timestamps.
| Parameter | Type | Description |
|---|---|---|
email_uid * | string |
mailblaze_send_transactional_email Send a transactional email
WRITE, SENDS ONE EMAIL NOW: send a single one-to-one email to one recipient through Mail Blaze. It leaves immediately, uses sending credit and cannot be recalled. Give either html (the body) or template_id (a transactional template, with merge_tags covering every tag in it), not both. Confirm the recipient and content with the user before calling. Not for bulk or marketing mail; use a campaign for that.
| Parameter | Type | Description |
|---|---|---|
from_email * | string | Sender address; it must be a verified sender in Mail Blaze. |
from_name * | string | Sender name (required by Mail Blaze). |
subject * | string | |
to_email * | string | |
to_name * | string | Recipient name (required by Mail Blaze). |
html | string | HTML body (the tool base64-encodes it). Omit when using template_id. |
merge_tags | object | Template merge tags (required with template_id); every tag in the template must be present. |
reply_to_email | string | |
reply_to_name | string | |
template_id | string | Transactional template id. Omit when sending html. |