motorical_send_email
Send transactional email or validate it first with a dry run that checks recipients, body size, and sending limits before a confirmed real send.
Instructions
Send a transactional email, or validate one first. Defaults to dryRun:true: a dry run returns the resolved from, subject, recipient count and body size, plus limits (burst, hourly and daily: used, limit, remaining, reset) and warnings (stable codes such as NO_TEXT_PART, SUBJECT_LONG, OVER_LIMIT, NEAR_LIMIT, THROTTLED), so "validated" is not read as "would work". Real sends require dryRun:false AND confirmRealSend:true. Over the hosted OAuth server your grant authorizes the send and you never see a key; the local stdio server instead needs MOTORICAL_MK_API_KEY (mk_live_...). A real send returns two different ids: messageId (use it with motorical_get_message and motorical_get_message_events) and nextAction.args.taskId (use it ONLY with motorical_wait_for_outcome). Neither works in the other tool. from must be an address at the domain your Motor Block is assigned to: a verified, send-ready domain you own, or the Motorical-owned sandbox domain from motorical_sandbox_provision (see motorical_get_onboarding_state sendFrom); any local part works. Sandbox accounts only: real sends go only to the effective allowlist (see motorical_sandbox_status); a non-allowlisted recipient is refused (403 sandbox_outbound_locked or sandbox_recipient_denied), never redirected, so unlock it with motorical_free_recipient_add first. Those two tools disappear once the account has a verified domain and an active plan, so ignore this sentence if you cannot see them. cc, bcc, replyTo, headers and attachments are optional; each field says its own limits and errors. Requires OAuth scope: send:transactional (see motorical_whoami for what it allows).
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>",
"subject": "<subject>"
},
"name": "motorical_send_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Copy recipients (Cc header), named in the header. to, cc and bcc together take at most 50 recipients and every one is checked like a to recipient (sandbox allowlist, Free-account rules, suppression; a suppressed cc/bcc is skipped and listed in data.skipped). Rolling out per Motor Block: a block without it answers 422 feature_not_enabled and sends nothing, so retry without it or tell the person | |
| to | Yes | ||
| bcc | No | Blind-copy recipients: delivered, named in no header. Rolling out per Motor Block | |
| from | No | Defaults to MOTORICAL_DEFAULT_FROM | |
| html | No | ||
| text | No | ||
| dryRun | No | Default true — validate without queueing | |
| headers | No | Extra email headers, e.g. In-Reply-To / References to thread a reply, List-Unsubscribe, X-* of your own. The platform refuses From, Sender, To, Cc, Bcc, Subject, Date, Message-ID, Content-*, DKIM/authentication and X-Motorical-* (400 DISALLOWED_HEADERS) | |
| replyTo | No | Reply-To address. Do not also set a Reply-To header. Rolling out per Motor Block | |
| subject | Yes | ||
| fromName | No | Optional From display name (do not put From in headers — use this field) | |
| attachments | No | Small files only, because the bytes travel through the conversation: { filename, content (base64), contentType?, contentId?, disposition? }, at most 5 files and about 500 KB in total (700000 base64 characters). Send anything larger over SMTP (see the attachments guide in the docs). An inline image takes a contentId and disposition inline; html references it as cid:<contentId>. The plan decides how many files, how large and which types, as over SMTP; a refusal names the plan and the limit (413 attachment_too_large or attachments_total_too_large, 422 too_many_attachments, attachment_type_not_allowed, content_policy_rejected). A dryRun runs the plan check but not the virus and content scan, so a real send can still be refused for the file itself. Rolling out per Motor Block: 422 feature_not_enabled where not available | |
| motorBlockId | No | Required when the authorization covers more than one Motor Block | |
| idempotencyKey | No | ||
| confirmRealSend | No | Required true when dryRun is false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| dryRun | No | ||
| status | No | Present only on a real send — accepted for delivery, NOT delivered | |
| message | No | ||
| success | Yes | ||
| delivered | No | Always null on the synchronous response — a 202 is never delivery | |
| messageId | No | Real send only: the message id for motorical_get_message / motorical_get_message_events (same value as data.id) | |
| idempotent | No | ||
| nextAction | No |