Set campaign recipients
Choose the contact list and optional segment a draft campaign goes to.
MCP tool mailjet_write → set_campaign_recipients
write
Does what the Contact list field and "Only send to a segment" do on the Create a new campaign page. A campaign goes to one list, and a segment narrows that list. Nothing is sent. The change reaches no one and is undone by calling the tool again, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| campaign_id integer required | integer | Campaign ID from list_campaigns. |
| list_id integer required | integer | Contact list ID from list_contact_lists. |
| segment string | string | Name of a segment from list_segments. Default: the whole list. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mailjet_write",
"arguments": {
"operation": "set_campaign_recipients",
"arguments": {
"campaign_id": 1,
"list_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"campaign_id": 7182934615,
"list": "Newsletter",
"segment": "Did not open: Autumn offer",
"status": "draft"
},
"isError": false
}