Schedule Email
schedule-emailSchedules email delivery for a future UTC time between 5 minutes and 30 days ahead, using standard message fields and returning a request ID for tracking or cancellation.
Instructions
Schedule an email for future delivery. Accepts the same fields as send-email plus a required scheduled_at (ISO 8601, UTC) that is at least 5 minutes in the future and at most 30 days out.
Returns: The scheduled email, including the sch_ request ID that get-scheduled-email and cancel-scheduled-email take.
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": {
"to": "<to>",
"from": "<from>",
"scheduled_at": "<scheduled_at>"
},
"name": "schedule-email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Optional array of CC email addresses. You MUST ask the user for this parameter. Under no circumstance provide it yourself | |
| to | Yes | Array of recipient email addresses (1-50 recipients) | |
| bcc | No | Optional array of BCC email addresses. You MUST ask the user for this parameter. Under no circumstance provide it yourself | |
| tag | No | Tag for tracking and analytics (max 64 characters) | |
| from | Yes | Sender email address. You MUST ask the user for this parameter. Under no circumstance provide it yourself | |
| html | No | HTML email content. At least one of html, text or template_slug is required. | |
| text | No | Plain text email content. At least one of html, text or template_slug is required. | |
| headers | No | Custom email headers (up to 10). Standard envelope headers (From, To, Subject, etc.), SparkPost internal headers (X-MSYS-API) and List-Unsubscribe headers are managed automatically and cannot be overridden. | |
| options | No | Email delivery options | |
| subject | No | Email subject line. Required unless template_slug is provided — templates supply their own subject as a default. If provided alongside a template, overrides the template's subject. | |
| amp_html | No | AMP HTML content for supported email clients. | |
| metadata | No | Custom metadata for tracking (e.g. { "user_id": "123", "campaign": "onboarding" }) | |
| reply_to | No | Optional reply-to email address. You MUST ask the user for this parameter. Under no circumstance provide it yourself | |
| from_name | No | Sender display name (e.g. "Acme Support") | |
| project_id | No | Project ID containing the template. Defaults to the team's default project. | |
| attachments | No | Array of file attachments. Each needs name, type and either data (base64) or filePath. | |
| scheduled_at | Yes | ISO 8601 UTC datetime (e.g. 2024-01-16T10:00:00Z). Must be 5+ minutes in the future and within 30 days. | |
| reply_to_name | No | Reply-To display name | |
| template_slug | No | Template slug to use for email content. When provided, the template's HTML is used. Use get-merge-tags to discover required substitution_data keys. | |
| template_version | No | Specific template version to use. Defaults to the active version. | |
| substitution_data | No | Variables for template substitution (e.g. { "first_name": "John" }). |