MCP tools: Sending
The tools of the MCP server under Sending. New messages and replies from an inbox, with idempotent retries.
inboxes_send
Tool for inboxes.send: POST /v1/inboxes/{inboxId}/send
Sends from the inbox's address. to, cc and bcc take a comma-separated string or an array. A reply passes threadId: the subject defaults to Re: <thread subject>, In-Reply-To and References are set from the thread, the previous message is quoted under the text unless includeQuote is false, to defaults to the last inbound message's Reply-To or sender, and the thread is marked read. Limits per inbox: 10 sends per minute and 200 per day (429 with Retry-After; refused sends are not counted), 50 recipients, 32 attachments, 25 MiB per message. On the free plan the account's monthly cap applies on top (402). Outbound messages are stored without a raw copy. multipart/form-data is accepted with the same field names and repeated attachments file fields. The security policy guards sends from keys and app tokens, never from a console session: a reply into a thread that holds a flagged message from a sender that is not trusted, or a recipient the inbox does not know when the policy asks for known recipients, answers 403 risk_blocked with guard. Mail an inbox rule generates is not guarded; it is never sent for a flagged message. Where the policy asks (sendApproval), a message to a recipient the inbox does not know answers 202 with a held send: it waits for the owner and must not be sent again (at most 50 wait, then 409). A failed file or link check answers 403 risk_blocked; retry a 503 scan_unavailable. OAuth: requires mail:send, mail:read.
- Offered to
- A connected agent with an approval that covers
mail:sendandmail:read. The default agent permissions cover it. With a key: any API key, or a console session. - Annotations
readOnlyHint: false,destructiveHint: false,idempotentHint: false,openWorldHint: true. The tool changes something; reaches outside the account: it sends mail or posts to a URL.
Input
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zidempotencyKeystringoptional1 to 255 printable ASCII characters. For 24 hours the same key with the same request replays the original answer with
Idempotent-Replayed: true; the same key with a different request is refused with 422idempotency_key_reused; a key whose first attempt is still running answers 409idempotency_in_progress; a failed send releases the key. Example:order-2847-replytostring | string[]optionalRecipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.
ccstring | string[]optionalbccstring | string[]optionalreplyTostringoptionalThe address replies should go to instead of the inbox.
subjectstringoptionalRequired on a new message. A reply defaults to
Re: <thread subject>.textstringoptionalThe plain-text body.
htmlstringoptionalThe HTML body. Text is derived from it when
textis absent.bodystringoptionalA convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when
textorhtmlis given.threadIdstringoptionalA thread id (thr_...). Makes the message a reply in this thread: threading headers, the default subject and recipient, and the quoted previous message come from it. An unknown, foreign or trashed thread answers 404
thread_not_found. Example:thr_01jc5a1b2c3d4e5f6g7h8j9k0mincludeQuotebooleanoptionalOn a reply, quote the previous message under the text. Defaults to true.
attachmentsobject[]optionalfilenamestringrequiredcontentTypestringrequiredExample:
application/pdfcontentstring (base64)requiredBase64. The 25 MiB message limit is enforced after decoding.
disposition"attachment" | "inline"optionalInline attachments are referenced from the HTML body by
contentId.contentIdstringoptionalThe Content-ID an inline image is referenced by, as
cid:<contentId>.
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
idempotencyKey | the header Idempotency-Key |
{
"name": "inboxes_send",
"arguments": {
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"to": "sam@example.com",
"subject": "Thursday",
"text": "Thursday works."
}
}inboxes_drafts_create
Tool for inboxes.drafts.create: POST /v1/inboxes/{inboxId}/drafts
Writes a message and leaves it for the owner: nothing is sent, and only the owner sends it, from the console or with heldSends.approve. The body is the one a send takes, and it is checked as a send would be (recipients, size, thread) so the owner is not handed something that cannot go out. The answer is a held send with kind draft; send.held fires, and message.sent follows if the owner sends it. An inbox has at most 100 drafts waiting, and one nobody sends expires after 30 days. A draft cannot be changed: take it back with drafts.delete and write it again. OAuth: requires mail:draft, mail:read.
- Offered to
- A connected agent with an approval that covers
mail:draftandmail:read. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an API key, or a correctly scoped app token where delegated access is allowed; console sessions are refused. - Annotations
readOnlyHint: false,destructiveHint: false,idempotentHint: false,openWorldHint: false. The tool changes something.
Input
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7ztostring | string[]optionalRecipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.
ccstring | string[]optionalbccstring | string[]optionalreplyTostringoptionalThe address replies should go to instead of the inbox.
subjectstringoptionalRequired on a new message. A reply defaults to
Re: <thread subject>.textstringoptionalThe plain-text body.
htmlstringoptionalThe HTML body. Text is derived from it when
textis absent.bodystringoptionalA convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when
textorhtmlis given.threadIdstringoptionalA thread id (thr_...). Makes the message a reply in this thread: threading headers, the default subject and recipient, and the quoted previous message come from it. An unknown, foreign or trashed thread answers 404
thread_not_found. Example:thr_01jc5a1b2c3d4e5f6g7h8j9k0mincludeQuotebooleanoptionalOn a reply, quote the previous message under the text. Defaults to true.
attachmentsobject[]optionalfilenamestringrequiredcontentTypestringrequiredExample:
application/pdfcontentstring (base64)requiredBase64. The 25 MiB message limit is enforced after decoding.
disposition"attachment" | "inline"optionalInline attachments are referenced from the HTML body by
contentId.contentIdstringoptionalThe Content-ID an inline image is referenced by, as
cid:<contentId>.
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
{
"name": "inboxes_drafts_create",
"arguments": {
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"to": "sam@example.com",
"subject": "Thursday",
"text": "Thursday works."
}
}drafts_delete
Tool for drafts.delete: DELETE /v1/drafts/{heldSendId}
Removes a draft that still waits, with what it carried; send.discarded fires. For the app or the key that wrote it, or a caller that may decide. A send the security policy kept is not a draft and answers 404 here: the owner ends that one. OAuth: requires mail:draft.
- Offered to
- A connected agent with an approval that covers
mail:draft. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: an API key, or a correctly scoped app token where delegated access is allowed; console sessions are refused. - Annotations
readOnlyHint: false,destructiveHint: true,idempotentHint: true,openWorldHint: false. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.
Input
heldSendIdstringrequiredThe held send. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
heldSendId | the path parameter heldSendId |
{
"name": "drafts_delete",
"arguments": {
"heldSendId": "hsd_01jc5f1a2b3c4d5e6f7g8h9j0k"
}
}
