Sarbacane MCP by usefulapi

v1.20.1
io.usefulapi/sarbacane Checked 3 days ago Published 1 day ago

Read Sarbacane campaigns, stats, lists and blacklists; manage contacts and draft email campaigns.

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

sarbacane_get_credits Get remaining credits

The account's remaining credits per type (email campaigns, SMS, eye tracking, Sendkit emails) with expiry date and subscription type. GET /v1/credits.

sarbacane_list_users List account users

Users and pending invitations of the Sarbacane account (name, email, role, team). GET /v1/users.

ParameterTypeDescription
limitintegerMaximum items returned, 1-1000 (default 50).
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.
searchstringFilter users by name or email.

sarbacane_list_lists List contact lists

All contact lists of the account, with their ids. Use the ids for contacts, fields and campaigns. GET /v1/lists.

ParameterTypeDescription
limitintegerMaximum items returned, 1-1000 (default 50).
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.

sarbacane_create_list Create a contact list

WRITE: create a new contact list with a name, optionally linked to team (group) ids. Each call creates a new list, even with the same name. Add contacts with sarbacane_create_contact. POST /v1/lists.

ParameterTypeDescription
name *stringList name.
team_idsarrayTeam (group) ids to link. Optional.

sarbacane_list_list_fields List a list's custom fields

The custom fields (columns) of a contact list: id, caption and type (STRING, BOOL, INT, DATE). Field ids are the keys used when writing contacts. GET /v1/lists/{listId}/fields.

ParameterTypeDescription
list_id *stringContact list id (sarbacane_list_lists).

sarbacane_list_contacts List contacts in a list

Contacts of one list (personal data: email, phone, custom fields). Filter by email, phone, a text search across fields, or the modification date. GET /v1/lists/{listId}/contacts.

ParameterTypeDescription
list_id *stringContact list id.
emailstringOnly the contact with this email.
limitintegerMaximum items returned, 1-1000 (default 50).
modified_afterstringOnly contacts modified at or after this time.
modified_beforestringOnly contacts modified at or before this time.
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.
phonestringOnly the contact with this phone number.
searchstringText to look for in the contact's fields.

sarbacane_create_contact Add a contact to a list

WRITE: add a contact to a contact list. Give an email, a phone number or both, and optional custom field values. Adds a new record; use sarbacane_upsert_contact to update an existing contact. POST /v1/lists/{listId}/contacts.

ParameterTypeDescription
list_id *stringContact list id.
emailstring
fieldsobjectCustom field values as { <custom field id>: value }. Get the ids from sarbacane_list_list_fields.
phonestring

sarbacane_upsert_contact Add or update a contact

WRITE: add a contact to a list, or update it when the same email/phone pair already exists (custom field values are overwritten). POST /v1/lists/{listId}/contacts/upsert.

ParameterTypeDescription
list_id *stringContact list id.
emailstring
fieldsobjectCustom field values as { <custom field id>: value }. Get the ids from sarbacane_list_list_fields.
phonestring

sarbacane_list_blacklists List blacklists

All blacklists (suppression lists) of the account, with their ids. GET /v1/blacklists.

ParameterTypeDescription
limitintegerMaximum items returned, 1-1000 (default 50).
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.

sarbacane_list_blacklist_entries List blacklist entries

Entries of a blacklist by kind: bounces (invalid addresses), unsubscribers or complaints (personal data: email, phone). Filter by email, phone or modification date. GET /v1/blacklists/{blacklistId}/{bounces|unsubscribers|complaints}.

ParameterTypeDescription
blacklist_id *stringBlacklist id (sarbacane_list_blacklists).
kind *stringWhich entries: bounces, unsubscribers or complaints.
emailstringOnly this email.
limitintegerMaximum items returned, 1-1000 (default 50).
modified_afterstringOnly entries modified at or after this time.
modified_beforestringOnly entries modified at or before this time.
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.
phonestringOnly this phone number.

sarbacane_add_unsubscriber Add an unsubscribed contact to a blacklist

WRITE: record an email and/or phone as unsubscribed in a blacklist, so campaigns using that blacklist skip it. Cannot be undone with these tools. POST /v1/blacklists/{blacklistId}/unsubscribers.

ParameterTypeDescription
blacklist_id *stringBlacklist id.
emailstring
phonestring

sarbacane_list_campaigns List campaigns

Campaigns of the account (id, name, kind, created/edited, recipient count). Filter by state or a text in the name or subject. GET /v1/campaigns.

ParameterTypeDescription
limitintegerMaximum campaigns returned, 1-1000 (default 25). Page with offset.
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.
searchstringText in the campaign name or subject.
statestringOnly campaigns in this state.

sarbacane_get_campaign Get campaign details

One campaign: state, kind, blacklists, send ids, sent date. The send id is needed to see content. GET /v1/campaigns/{campaignId}.

ParameterTypeDescription
campaign_id *stringCampaign id.

sarbacane_get_campaign_report Get campaign statistics

Statistics of a campaign per send: delivered count, opens, openers, clicks, clickers, unsubscribers, devices and operating systems. GET /v1/reports/{campaignId}.

ParameterTypeDescription
campaign_id *stringCampaign id.

sarbacane_list_campaign_recipients List a campaign's recipients

Recipients attached to a campaign (personal data: email, phone). GET /v1/campaigns/{campaignId}/recipients.

ParameterTypeDescription
campaign_id *stringCampaign id.
limitintegerMaximum items returned, 1-1000 (default 50).
offsetintegerStarting position, from 0 (default 0). Pass the previous reply's next_offset.

sarbacane_list_webhooks List webhooks

Webhook subscriptions of the account: url, display name and subscribed event kinds. GET /v1/webhooks.

sarbacane_create_email_campaign Create an email campaign (draft)

WRITE: create a new email campaign as a DRAFT. It is never sent by these tools: add content (sarbacane_set_campaign_content or sarbacane_import_campaign_template) and a contact list (sarbacane_set_campaign_list), then send it from Sarbacane. POST /v1/campaigns/email.

ParameterTypeDescription
alias_from *stringSender name.
alias_reply_to *stringReply-to name.
email_from *stringSender email address (must be a sender allowed on the account).
email_reply_to *stringReply-to email address.
name *stringCampaign name (internal).
subject *stringEmail subject.
preheaderstringPreheader text.

sarbacane_create_sms_campaign Create an SMS campaign

WRITE: create a new SMS campaign. This tool never sends it: a person sends it from Sarbacane. POST /v1/campaigns/sms.

ParameterTypeDescription
content *stringSMS text, up to 450 characters from the GSM table.
kind *stringSMS_MARKETING (promotions) or SMS_NOTIFICATION (transactional notices).
name *stringCampaign name (internal).
sms_fromstringSender name, 3 to 11 letters or digits.
team_idsarrayTeam (group) ids to link. Optional.

sarbacane_set_campaign_content Set a draft campaign's content

WRITE: set the HTML (and optional plain-text) content of an email campaign's send, replacing what was there. Without send_id the campaign's only send is used (an A/B test campaign has several: pass one). POST /v1/campaigns/{campaignId}/send/{sendId}/content.

ParameterTypeDescription
campaign_id *stringCampaign id.
html *stringThe HTML body of the email.
send_idstringSend id from sarbacane_get_campaign (campaign.sends). Optional when the campaign has one send.
textstringPlain-text alternative.

sarbacane_import_campaign_template Import a template into a draft campaign

WRITE: load a saved template's content into an email campaign, replacing its content. POST /v1/campaigns/{campaignId}/content.

ParameterTypeDescription
campaign_id *stringCampaign id.
template_id *stringTemplate id (from Sarbacane).

sarbacane_set_campaign_list Attach a contact list to a draft campaign

WRITE: import a contact list's contacts as the recipients of a campaign. It does not send the campaign. POST /v1/campaigns/{campaignId}/list.

ParameterTypeDescription
campaign_id *stringCampaign id.
list_id *stringContact list id (sarbacane_list_lists).