send_campaign
Send an email campaign to its designated audience immediately. This action is irreversible and triggers the campaign delivery process.
Instructions
Send a campaign to its audience. This action is irreversible — the campaign will be sent immediately.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>"
},
"name": "send_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | Campaign ID to send |
Implementation Reference
- server.js:267-279 (handler)The handler for the 'send_campaign' tool, which uses the mailchimp SDK to send a campaign.
server.tool( "send_campaign", "Send a campaign to its audience. This action is irreversible — the campaign will be sent immediately.", { campaign_id: z.string().describe("Campaign ID to send"), }, async ({ campaign_id }) => { await mailchimp.campaigns.send(campaign_id); return { content: [{ type: "text", text: JSON.stringify({ success: true, campaign_id, status: "sent" }, null, 2) }], }; } );