---
title: "MCP tools: Sending"
description: "The tools of the MCP server under Sending. New messages and replies from an inbox, with idempotent retries."
url: https://doorman.fyi/docs/mcp/tools/sending
markdown: https://doorman.fyi/docs/mcp/tools/sending.md
area: "SDKs and tools"
section: "MCP server"
---

# MCP tools: Sending

The tools of the MCP server under Sending. New messages and replies from an inbox, with idempotent retries.

Source: https://doorman.fyi/docs/mcp/tools/sending

## inboxes_send

Tool:
```text
inboxes_send
```

Operation [`inboxes.send`](https://doorman.fyi/docs/reference/sending.md#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**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `idempotencyKey` (string, optional): 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`
- `to` (string | string[], optional): Recipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.
- `cc` (string | string[], optional)
- `bcc` (string | string[], optional)
- `replyTo` (string, optional): The address replies should go to instead of the inbox.
- `subject` (string, optional): Required on a new message. A reply defaults to `Re: <thread subject>`.
- `text` (string, optional): The plain-text body.
- `html` (string, optional): The HTML body. Text is derived from it when `text` is absent.
- `body` (string, optional): A convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when `text` or `html` is given.
- `threadId` (string, optional): 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`
- `includeQuote` (boolean, optional): On a reply, quote the previous message under the text. Defaults to true.
- `attachments` (object[], optional)
  - `filename` (string)
  - `contentType` (string) Example: `application/pdf`
  - `content` (string (base64)): Base64. The 25 MiB message limit is enforced after decoding.
  - `disposition` ("attachment" | "inline", optional): Inline attachments are referenced from the HTML body by `contentId`.
  - `contentId` (string, optional): The 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` |

Example call:
```json
{
  "name": "inboxes_send",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "to": "sam@example.com",
    "subject": "Thursday",
    "text": "Thursday works."
  }
}
```

## inboxes_drafts_create

Tool:
```text
inboxes_drafts_create
```

Operation [`inboxes.drafts.create`](https://doorman.fyi/docs/reference/sending.md#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**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `to` (string | string[], optional): Recipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.
- `cc` (string | string[], optional)
- `bcc` (string | string[], optional)
- `replyTo` (string, optional): The address replies should go to instead of the inbox.
- `subject` (string, optional): Required on a new message. A reply defaults to `Re: <thread subject>`.
- `text` (string, optional): The plain-text body.
- `html` (string, optional): The HTML body. Text is derived from it when `text` is absent.
- `body` (string, optional): A convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when `text` or `html` is given.
- `threadId` (string, optional): 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`
- `includeQuote` (boolean, optional): On a reply, quote the previous message under the text. Defaults to true.
- `attachments` (object[], optional)
  - `filename` (string)
  - `contentType` (string) Example: `application/pdf`
  - `content` (string (base64)): Base64. The 25 MiB message limit is enforced after decoding.
  - `disposition` ("attachment" | "inline", optional): Inline attachments are referenced from the HTML body by `contentId`.
  - `contentId` (string, optional): The 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` |

Example call:
```json
{
  "name": "inboxes_drafts_create",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "to": "sam@example.com",
    "subject": "Thursday",
    "text": "Thursday works."
  }
}
```

## drafts_delete

Tool:
```text
drafts_delete
```

Operation [`drafts.delete`](https://doorman.fyi/docs/reference/sending.md#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**
- `heldSendId` (string): The held send. Example: `hsd_01jc5f1a2b3c4d5e6f7g8h9j0k`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `heldSendId` | the path parameter `heldSendId` |

Example call:
```json
{
  "name": "drafts_delete",
  "arguments": {
    "heldSendId": "hsd_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```
