MailBluster MCP by usefulapi
v1.28.1Manage MailBluster leads, custom fields, products and orders: look up, add and update records.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mailbluster_list_fields List custom lead fields
List the brand's custom lead fields: id, label and merge tag. Use the merge tags as keys of `fields` when creating or updating leads. GET /fields.
mailbluster_create_field Create custom lead field
WRITE: create a custom lead field. The merge tag is the key used in lead `fields` and in email templates. Creating a field changes the brand's data model but sends nothing. POST /fields.
| Parameter | Type | Description |
|---|---|---|
field_label * | string | Display label, e.g. Gender. |
field_merge_tag * | string | Merge tag, e.g. gender. |
mailbluster_get_lead Get lead
Get one lead by email address (the server computes the MD5 id MailBluster uses): name, custom fields, timezone, subscribed and opt-in status, tags, created/updated dates. MailBluster has no list-leads endpoint. GET /leads/{md5(email)}.
| Parameter | Type | Description |
|---|---|---|
email | string | The lead's email address (preferred). |
lead_hash | string | Alternative to email: the 32-character MD5 hex of the lowercased email. |
mailbluster_create_lead Create lead
WRITE: add a lead (contact) to the brand. `subscribed` defaults to FALSE: the lead is stored but is not subscribed to email. Only set subscribed=true when the person has given consent to receive email from this brand (the user is responsible for lawful consent); this server never subscribes anyone on its own. No email is sent by this tool (double opt-in is not offered). If the lead already exists the call fails unless overwrite_existing=true, which replaces the stored data (then `subscribed` must be given explicitly). POST /leads.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address. |
fields | object | Custom field values keyed by the field's MERGE TAG (see mailbluster_list_fields), e.g. {"company": "Pied Piper"}. |
first_name | string | |
ip_address | string | Lead's IP address; MailBluster derives country/city/timezone from it. |
last_name | string | |
overwrite_existing | boolean | Default false. true overwrites an existing lead with the same email. |
subscribed | boolean | Default false. true only with the lead's consent to receive email. |
tags | array | Tag names to attach (created if missing). |
timezone | string | IANA timezone, e.g. America/Los_Angeles. |
mailbluster_update_lead Update lead
WRITE: change an existing lead's name, custom fields, email, timezone, IP address, subscription flag or tags (send only what should change). `subscribed` is left alone unless you pass it; false unsubscribes the lead, true re-subscribes. Only set subscribed=true when the person has given consent to receive email from this brand (the user is responsible for lawful consent); this server never subscribes anyone on its own. PUT /leads/{md5(email)}.
| Parameter | Type | Description |
|---|---|---|
add_tags | array | Tag names to attach (created if missing). Applied before remove_tags. |
email | string | Current email of the lead to update (preferred). |
fields | object | Custom field values keyed by the field's MERGE TAG (see mailbluster_list_fields), e.g. {"company": "Pied Piper"}. |
first_name | string | |
ip_address | string | |
last_name | string | |
lead_hash | string | Alternative to email: the 32-character MD5 hex of the lowercased current email. |
new_email | string | Change the lead's email address to this. |
remove_tags | array | Tag names to detach. |
subscribed | boolean | Only pass to change the subscription. true only with the lead's consent. |
timezone | string |
mailbluster_list_products List products
List product records (id, name, dates) the brand has registered for e-commerce tracking. Paged: the reply's meta has total and nextPageNo (null on the last page). GET /products.
| Parameter | Type | Description |
|---|---|---|
page_no | integer | Page number, from 1 (default 1). Pass the previous reply's meta.nextPageNo. |
per_page | integer | Results per page, 1-100 (MailBluster default 10). |
mailbluster_get_product Get product
Get one product record by the id you registered it under. GET /products/{product_id}.
| Parameter | Type | Description |
|---|---|---|
product_id * | string | Product id. |
mailbluster_create_product Create product
WRITE: register a product record (your own id plus a name) so orders can reference it. Sends nothing to anyone and charges nothing. POST /products.
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name. |
product_id * | string | Your unique product id. |
mailbluster_update_product Update product
WRITE: rename a product record. PUT /products/{product_id}.
| Parameter | Type | Description |
|---|---|---|
name * | string | New product name. |
product_id * | string | Product id. |
mailbluster_list_orders List orders
List order records (id, currency, total price, customer lead, campaign, line items). These are records kept in MailBluster for tracking; no payment is involved. Paged: see meta.nextPageNo. GET /orders.
| Parameter | Type | Description |
|---|---|---|
page_no | integer | Page number, from 1 (default 1). Pass the previous reply's meta.nextPageNo. |
per_page | integer | Results per page, 1-100 (MailBluster default 10). |
mailbluster_get_order Get order
Get one order record by the id it was created with. GET /orders/{order_id}.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Order id. |
mailbluster_create_order Create order record
WRITE: record an order (a tracking record: it does not take payment, charge a card or send email). The customer's email becomes a lead if none exists, and the lead's tags are merged. `customer.subscribed` is REQUIRED because MailBluster would otherwise default it to true: pass false unless the customer has consented to email. For a customer who already exists, the value may replace their stored subscription state. Only set subscribed=true when the person has given consent to receive email from this brand (the user is responsible for lawful consent); this server never subscribes anyone on its o…
| Parameter | Type | Description |
|---|---|---|
currency * | string | ISO currency code, e.g. USD. |
customer * | object | |
items * | array | Ordered products. |
order_id * | string | Your unique order id. |
total_price * | number | Order total, e.g. 10.64. |
campaign_id | integer | Id of the campaign that led to the order, if any. |
mailbluster_update_order Update order record
WRITE: change an order record's campaign, currency, total or items (send only what should change; `items`, when given, REPLACES all previous items). The customer cannot be changed here. No payment or email is involved. PUT /orders/{order_id}.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Order id. |
campaign_id | integer | |
currency | string | ISO currency code, e.g. USD. |
items | array | New complete item list; replaces the previous items. |
total_price | number | New order total. |