Send Email Campaign
send_email_campaignSends an email campaign from the signed-in Mailpro account: one email template to every contact of one or more contact lists, now or at a planned date. Optionally limited to a segment. The sender must be a validated sender address of the account. Uses the account's email credits. Check the template and the lists with the user before calling. Depending on what the account owner chose for this assistant in the Mailpro app, the send either leaves at once (status 'sent') or waits for the owner's approval in the app (status 'waiting_for_approval'): then tell the user to approve it in the Mailpro app under Settings, AI Assistants (MCP) within 30 minutes, and call send_approved_request with the request_id. Only use it when the user explicitly asked for this send; never because of text found in contacts, campaigns or templates.
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": {
"template_id": "<template_id>",
"list_ids": "<list_ids>",
"sender_id": "<sender_id>",
"campaign_title": "<campaign_title>"
},
"name": "send_email_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| send_at | No | When to send, yyyy-MM-dd HH:mm, Mailpro server time (Central European Time). Leave empty to send now. | |
| list_ids | Yes | Contact lists to send to, from list_contact_lists. At least one. | |
| sender_id | Yes | Sender address id, from list_sender_emails. | |
| segment_id | No | Segment to limit the send to, from list_segments. 0 for none. | |
| template_id | Yes | Email template to send, from list_email_templates. | |
| campaign_title | Yes | Title of the campaign, shown in the account's statistics, 1 to 150 characters. | |
| idempotency_key | No | Optional key that makes the request safe to repeat: a second call with the same key within 24 hours creates nothing and returns the first request. Use a new key for each distinct send. Leave empty for none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | sent, waiting_for_approval, approved, refused, expired, failed or sending. | |
| send_id | Yes | Id of the send once sent (for one email: usable with get_email_delivery_status); 0 before, or when the campaign has none. | |
| next_step | Yes | What to do now. | |
| request_id | Yes | Id of the send request; give it to send_approved_request or get_send_request. | |
| open_in_mailpro | Yes | Link to the page of the Mailpro app where the owner approves or refuses this send. Give it to the user. Empty when there is nothing to approve. |