Add recipients
Add people to a campaign with a name and custom fields for the text replacements in your emails.
MCP tool mailshake_write → add_recipients
Adds recipients to a campaign and waits for Mailshake to finish the import, then returns what was skipped. Addresses on your unsubscribe list and addresses already in the campaign are skipped. A campaign holds up to 5,000 recipients through the API, and your plan limits how many recipients you can add per month. Unless the campaign is paused, new recipients are scheduled to get its emails right away. A field your emails use as a text replacement but a recipient lacks keeps that recipient's emails from being scheduled. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| campaign_id integer required | integer | Campaign ID from list_campaigns. |
| addresses object[] required | object[] | Each item: email_address (required), full_name, and fields, an object of custom values such as company. Mailshake adds first, last and name text replacements from full_name. Up to 30 fields per recipient. |
| add_as_new_list boolean | boolean | true to keep these recipients grouped as their own list. Default: false, they join the last list you uploaded. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mailshake_write",
"arguments": {
"operation": "add_recipients",
"arguments": {
"campaign_id": 4821,
"addresses": [
{
"email_address": "dana@brightpath.example",
"full_name": "Dana Whitfield",
"fields": {
"company": "Brightpath"
}
},
{
"email_address": "omar@lumenlabs.example",
"full_name": "Omar Haddad",
"fields": {
"company": "Lumen Labs"
}
},
{
"email_address": "li@oldclient.example",
"full_name": "Li Chen",
"fields": {
"company": "Old Client"
}
}
],
"add_as_new_list": true
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"campaign_id": 4821,
"submitted": 3,
"added": 2,
"invalid_emails": [],
"problems": {
"unsubscribed_emails": [
"li@oldclient.example"
],
"already_in_campaign_emails": [],
"over_campaign_limit_emails": []
}
},
"isError": false
}