MailBluster MCP by usefulapi

v1.28.1
io.usefulapi/mailbluster Checked 3 days ago Published 1 day ago

Manage 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.

ParameterTypeDescription
field_label *stringDisplay label, e.g. Gender.
field_merge_tag *stringMerge 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)}.

ParameterTypeDescription
emailstringThe lead's email address (preferred).
lead_hashstringAlternative 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.

ParameterTypeDescription
email *stringEmail address.
fieldsobjectCustom field values keyed by the field's MERGE TAG (see mailbluster_list_fields), e.g. {"company": "Pied Piper"}.
first_namestring
ip_addressstringLead's IP address; MailBluster derives country/city/timezone from it.
last_namestring
overwrite_existingbooleanDefault false. true overwrites an existing lead with the same email.
subscribedbooleanDefault false. true only with the lead's consent to receive email.
tagsarrayTag names to attach (created if missing).
timezonestringIANA 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)}.

ParameterTypeDescription
add_tagsarrayTag names to attach (created if missing). Applied before remove_tags.
emailstringCurrent email of the lead to update (preferred).
fieldsobjectCustom field values keyed by the field's MERGE TAG (see mailbluster_list_fields), e.g. {"company": "Pied Piper"}.
first_namestring
ip_addressstring
last_namestring
lead_hashstringAlternative to email: the 32-character MD5 hex of the lowercased current email.
new_emailstringChange the lead's email address to this.
remove_tagsarrayTag names to detach.
subscribedbooleanOnly pass to change the subscription. true only with the lead's consent.
timezonestring

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.

ParameterTypeDescription
page_nointegerPage number, from 1 (default 1). Pass the previous reply's meta.nextPageNo.
per_pageintegerResults 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}.

ParameterTypeDescription
product_id *stringProduct 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.

ParameterTypeDescription
name *stringProduct name.
product_id *stringYour unique product id.

mailbluster_update_product Update product

WRITE: rename a product record. PUT /products/{product_id}.

ParameterTypeDescription
name *stringNew product name.
product_id *stringProduct 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.

ParameterTypeDescription
page_nointegerPage number, from 1 (default 1). Pass the previous reply's meta.nextPageNo.
per_pageintegerResults 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}.

ParameterTypeDescription
order_id *stringOrder 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…

ParameterTypeDescription
currency *stringISO currency code, e.g. USD.
customer *object
items *arrayOrdered products.
order_id *stringYour unique order id.
total_price *numberOrder total, e.g. 10.64.
campaign_idintegerId 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}.

ParameterTypeDescription
order_id *stringOrder id.
campaign_idinteger
currencystringISO currency code, e.g. USD.
itemsarrayNew complete item list; replaces the previous items.
total_pricenumberNew order total.