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:send and mail: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
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • idempotencyKeystringoptional

    1 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 422 idempotency_key_reused; a key whose first attempt is still running answers 409 idempotency_in_progress; a failed send releases the key. Example: order-2847-reply

  • tostring | string[]optional

    Recipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.

  • ccstring | string[]optional

  • bccstring | string[]optional

  • replyTostringoptional

    The address replies should go to instead of the inbox.

  • subjectstringoptional

    Required on a new message. A reply defaults to Re: <thread subject>.

  • textstringoptional

    The plain-text body.

  • htmlstringoptional

    The HTML body. Text is derived from it when text is absent.

  • bodystringoptional

    A convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when text or html is given.

  • threadIdstringoptional

    A 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_01jc5a1b2c3d4e5f6g7h8j9k0m

  • includeQuotebooleanoptional

    On a reply, quote the previous message under the text. Defaults to true.

  • attachmentsobject[]optional

  • filenamestringrequired

  • contentTypestringrequired

    Example: application/pdf

  • contentstring (base64)required

    Base64. The 25 MiB message limit is enforced after decoding.

  • disposition"attachment" | "inline"optional

    Inline attachments are referenced from the HTML body by contentId.

  • contentIdstringoptional

    The Content-ID an inline image is referenced by, as cid:<contentId>.

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId
idempotencyKeythe header Idempotency-Key

Example call

{
  "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:draft and mail: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
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • tostring | string[]optional

    Recipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.

  • ccstring | string[]optional

  • bccstring | string[]optional

  • replyTostringoptional

    The address replies should go to instead of the inbox.

  • subjectstringoptional

    Required on a new message. A reply defaults to Re: <thread subject>.

  • textstringoptional

    The plain-text body.

  • htmlstringoptional

    The HTML body. Text is derived from it when text is absent.

  • bodystringoptional

    A convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when text or html is given.

  • threadIdstringoptional

    A 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_01jc5a1b2c3d4e5f6g7h8j9k0m

  • includeQuotebooleanoptional

    On a reply, quote the previous message under the text. Defaults to true.

  • attachmentsobject[]optional

  • filenamestringrequired

  • contentTypestringrequired

    Example: application/pdf

  • contentstring (base64)required

    Base64. The 25 MiB message limit is enforced after decoding.

  • disposition"attachment" | "inline"optional

    Inline attachments are referenced from the HTML body by contentId.

  • contentIdstringoptional

    The Content-ID an inline image is referenced by, as cid:<contentId>.

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId

Example call

{
  "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
  • heldSendIdstringrequired

    The held send. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
heldSendIdthe path parameter heldSendId

Example call

{
  "name": "drafts_delete",
  "arguments": {
    "heldSendId": "hsd_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}

Up Down to move, Enter to open, Esc to close