Prepare newsletter dispatch
prepare_campaign_dispatchPrepares a real newsletter send for immediate or scheduled dispatch without sending or scheduling yet. Omit scheduledAt for immediate sending; provide a future ISO 8601 time with an explicit UTC offset to schedule. Clarify ambiguous dates or timezones with the user. Requires explicitly enabled campaigns.dispatch and campaigns.read. First read get_campaign_details and get_campaign_content. Resolve any unclear newsletter, audience or exclusions with the user; never assume all contacts. Use list_tags and list_campaigns to resolve audience references, then update_campaign_target to edit the complete saved audience of a draft with its current draftRevision. Read the saved draft again. Preserve target.clicks and target.opens unless the user explicitly changes them. clicks.include/exclude select a sent campaignId and optional destinationUrl; opens.include/exclude select a sent campaignId. Each group independently uses includeMatch/excludeMatch any or all. Tag, click and opening criteria all apply together; matching exclusions win. Never interpret mode all with empty tags as everyone while click or opening criteria remain. Opening data is unreliable due to deliberate provider privacy protections and blocked images; explain this briefly before recommending opening-based targeting. A missing recorded open is not proof that a newsletter was unread. target.includeMatch and target.excludeMatch independently accept any (default when omitted) or all. Include any requires at least one selected tag; include all requires every selected tag. Exclude any rejects a contact with at least one selected tag; exclude all rejects only contacts with every selected exclusion tag. Empty includeTags imposes no restriction; empty excludeTags excludes nobody; exclusions win. Read and preserve both tag arrays and match modes when replacing target; omitting a match mode resets it to any. Validate and preview saved content and offer send_campaign_test (ask for a test address when unknown). Pass the current draftRevision. Preparation creates a recipient snapshot; only eligible active, unsuppressed contacts can receive. For scheduled dispatch, this count is a preview: recipients and content snapshots are rebuilt at the scheduled time, matching Admin scheduling. If ready is false, poll this tool using the same preparationId, revision, scheduledAt and idempotencyKey; do not send or ask for final approval yet. When ready is true, show name, subject, sender/reply-to, the complete saved audience including include/exclude tags, newsletter click filters (including specific destination links), newsletter opening filters, and each group’s any/all match mode in plain language, recipient count, exclusions and send mode, including the exact scheduled time in the user timezone when applicable. Explain that scheduled recipient counts may change before sending. Ask for explicit approval of this exact summary before commit_campaign_dispatch. Changes or expired tokens require fresh preparation and renewed approval. This tool only prepares; commit_campaign_dispatch schedules or starts the approved draft. It does not reschedule, resume or cancel an existing send.
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": {
"campaignId": "<campaignId>",
"expectedDraftRevision": "<expectedDraftRevision>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "prepare_campaign_dispatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | Draft newsletter ID selected with the user | |
| scheduledAt | No | Future send time in ISO 8601 with explicit UTC offset (e.g. 2026-12-01T10:00:00+01:00). Omit for immediate send. Resolve the user timezone before choosing the instant; preserve this value when polling. | |
| preparationId | No | Preparation ID from a previous ready:false response; omit to start or reuse preparation | |
| idempotencyKey | Yes | Unique operation key; generate once for preparation and reuse unchanged for commit and retries. Use a new key after preparing a changed operation. | |
| expectedDraftRevision | Yes | Current draftRevision from get_campaign_details after all edits |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | Yes | ||
| summary | Yes | ||
| expiresAt | Yes | ||
| requestId | Yes | ||
| preparationId | Yes | ||
| confirmationToken | Yes | ||
| preparationStatus | Yes |