---
title: "MCP tools: Inboxes"
description: "The tools of the MCP server under Inboxes. Addresses on the inbox domain: issue, read, rename and delete them."
url: https://doorman.fyi/docs/mcp/tools/inboxes
markdown: https://doorman.fyi/docs/mcp/tools/inboxes.md
area: "SDKs and tools"
section: "MCP server"
---

# MCP tools: Inboxes

The tools of the MCP server under Inboxes. Addresses on the inbox domain: issue, read, rename and delete them.

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

## inboxes_list

Tool:
```text
inboxes_list
```

Operation [`inboxes.list`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-list): `GET /v1/inboxes`

The account's active inboxes, oldest first, each with its unread thread count and the instant of its last message. An inbox-scoped key sees its own inbox only. OAuth: requires inboxes:read.

- Offered to: A connected agent with an approval that covers `inboxes:read`. The default agent permissions cover it. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `q` (string, optional): Keep the inboxes whose address or display name contains this text, case-insensitively.
- `externalId` (string, optional): Keep the inbox with exactly this `externalId`: at most one, since it is unique among the account's active inboxes. Example: `customer-8841`
- `limit` (integer, optional): Page size, 1 to 100. Defaults to 50.
- `offset` (integer, optional): Rows to skip. Defaults to 0.

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

| Input | Sent as |
| --- | --- |
| `q` | the query parameter `q` |
| `externalId` | the query parameter `externalId` |
| `limit` | the query parameter `limit` |
| `offset` | the query parameter `offset` |

Example call:
```json
{
  "name": "inboxes_list",
  "arguments": {}
}
```

## inboxes_create

Tool:
```text
inboxes_create
```

Operation [`inboxes.create`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-create): `POST /v1/inboxes`

A new address on the inbox domain that receives mail as soon as the call returns. Omit `mailboxName` for a random one. Pass `webhookUrl` and `key` to issue a ready-to-use inbox in one call: the answer then carries the webhook's signing secret and the inbox-scoped key's token, once. `externalId` tags the inbox with your own identifier for later lookups. Creating past the plan's allowance answers 402 `plan_limit_reached`; deleting an inbox frees its slot. Every plan also has a ceiling of 100 active inboxes per account (409 `limit_reached`). OAuth: requires inboxes:write.

- Offered to: A connected agent with an approval that covers `inboxes:write`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something.
- One-time secret: The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.

**Input**
- `mailboxName` (string, optional): 3 to 30 lowercase letters, digits, dots or hyphens: the part before the @. Reserved names are refused with 400 validation_error: mail infrastructure (abuse, admin, administrator, api, bounce, bounces, ...), the company's role accounts (support, billing, sales, legal, security, ...), names holding such a role as a dot- or hyphen-separated label (acme-support) however the role is written (support1, supp0rt, no-reply, supportteam), and the doorman and theovex brand with its lookalikes. The full lists are under x-doorman-limits.inboxes. Example: `concierge`
- `displayName` (string, optional): The sender name on outbound mail, at most 100 characters, with at least one letter or digit and no @, <, >, URL, control or invisible characters, no Latin mixed with Cyrillic or Greek, never the doorman or theovex brand, and never a bare role such as Support or Billing team: it says who, not only what. Example: `Acme concierge`
- `externalId` (string, optional): Your own identifier for the inbox (a user, a job, a tenant), at most 200 characters and unique among the account's active inboxes. Look an inbox up with `GET /v1/inboxes?externalId=`. Example: `customer-8841`
- `metadata` (object of string | number | boolean | null, optional): Extension state: at most 20 keys and 2048 bytes of UTF-8 JSON. Keys are 1 to 64 ASCII letters, digits, underscores, dots, colons or hyphens, starting with a letter or digit. Values are strings, finite numbers, booleans or null. Replaced as a whole; {} clears it. Do not store secrets. Example: `{"customer":"customer-8841","reviewed":false}`
- `domainId` (string, optional): One of this account's verified custom domains. Omit for the shared domain. Example: `dom_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `webhookUrl` (string, optional): Set the inbox webhook at once: an https URL without credentials. The signing secret is in the answer's `webhook`. Example: `https://agent.example.com/hooks/doorman`
- `key` (object, optional): Mint an inbox-scoped key at once. Its token is in the answer's `key`.
  - `name` (string, optional): A label for the key, at most 100 characters. Example: `Acme concierge`

Example call:
```json
{
  "name": "inboxes_create",
  "arguments": {
    "mailboxName": "concierge",
    "displayName": "Acme concierge"
  }
}
```

## inboxes_get

Tool:
```text
inboxes_get
```

Operation [`inboxes.get`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-get): `GET /v1/inboxes/{inboxId}`

One inbox. An inbox-scoped key can read its own only; anything else is 404. OAuth: requires inboxes:read.

- Offered to: A connected agent with an approval that covers `inboxes:read`. The default agent permissions cover it. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

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

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

Example call:
```json
{
  "name": "inboxes_get",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_update

Tool:
```text
inboxes_update
```

Operation [`inboxes.update`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-update): `PATCH /v1/inboxes/{inboxId}`

Changes the display name, external identifier or metadata. Null clears either name or externalId; metadata replaces the whole map and {} clears it. Fields left out stay as they are. The address cannot change. An `externalId` already carried by another active inbox of the account answers 409 `already_exists`. OAuth: requires inboxes:write.

- Offered to: A connected agent with an approval that covers `inboxes:write`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `displayName` (string | null, optional): The new sender name; null or empty clears it.
- `signature` (string | null, optional): The new signature: plain text of at most 1000 characters, line breaks kept. It is appended to every message the inbox sends from then on, a rule's forward excepted. On the shared domain a signature may not present the sender as the company (the doorman or theovex brand beside a word such as team, support or security): that answers 400 validation_error, for this field and for `signatureHtml`. Null or empty clears it.
- `signatureHtml` (string | null, optional): The signature as markup, at most 10000 characters: tables, inline styles, links and https images, as a signature builder exports it. It is cleaned before it is stored (scripts, style sheets, forms, frames, event handlers, and images that are not https are removed), and the answer carries what was kept. From then on every message the inbox sends carries it in its HTML part, and a message sent as text alone gains an HTML part for it; `signature` stays the text part's. When it is set on an inbox that has no `signature`, and none is given with it, the text is read from the markup. Null or empty clears it.
- `externalId` (string | null, optional): Your new identifier for the inbox; null clears it.
- `metadata` (object of string | number | boolean | null, optional): Extension state: at most 20 keys and 2048 bytes of UTF-8 JSON. Keys are 1 to 64 ASCII letters, digits, underscores, dots, colons or hyphens, starting with a letter or digit. Values are strings, finite numbers, booleans or null. Replaced as a whole; {} clears it. Do not store secrets. Example: `{"customer":"customer-8841","reviewed":false}`

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

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

Example call:
```json
{
  "name": "inboxes_update",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "displayName": "Acme concierge"
  }
}
```

## inboxes_delete

Tool:
```text
inboxes_delete
```

Operation [`inboxes.delete`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-delete): `DELETE /v1/inboxes/{inboxId}`

Deletes the inbox, revokes its keys, removes its webhook, closes its stream connections and stops delivery. The address is held for 180 days before another account can reuse it. Where the deployment erases, what it held is erased 30 days later. OAuth: requires inboxes:write.

- Offered to: A connected agent with an approval that covers `inboxes:write`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- 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**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

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

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

Example call:
```json
{
  "name": "inboxes_delete",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_rules_list

Tool:
```text
inboxes_rules_list
```

Operation [`inboxes.rules.list`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-list): `GET /v1/inboxes/{inboxId}/rules`

The inbox's rules, oldest first with id as the tie-breaker. At most 25 rules per inbox. OAuth: requires rules:manage, mail:read, mail:write, mail:send.

- Offered to: A connected agent with an approval that covers `rules:manage` and `mail:read` and `mail:write` and `mail:send`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`

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

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

Example call:
```json
{
  "name": "inboxes_rules_list",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_rules_create

Tool:
```text
inboxes_rules_create
```

Operation [`inboxes.rules.create`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-create): `POST /v1/inboxes/{inboxId}/rules`

All when conditions must match after classification. Actions run in array order; one outbound action is selected per inbound message across matching rules. Auto-replies and forwards require loop-safe personal mail, use plain text and respect send limits. At most 25 rules per inbox and 5 actions per rule. Enabled by default. OAuth: requires rules:manage, mail:read, mail:write, mail:send.

- Offered to: A connected agent with an approval that covers `rules:manage` and `mail:read` and `mail:write` and `mail:send`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: false`, `openWorldHint: true`. The tool changes something; can remove something, or replace a secret that stops verifying at once; reaches outside the account: it sends mail or posts to a URL.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `name` (string)
- `enabled` (boolean, optional)
- `when` (object): All supplied conditions must match. At least one condition is required.
  - `category` ("personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious", optional)
  - `sender` (string (email), optional): Exact normalized From address. A match is not proof of sender identity.
  - `subjectContains` (string, optional): Case-insensitive subject substring, not a regular expression.
  - `minRiskLevel` ("low" | "medium" | "high" | "critical", optional): The message's risk level is this or higher. A message that was not assessed never matches.
  - `senderStanding` ("trusted" | "known" | "new" | "blocked", optional): The sender's standing when the message arrived. A message that was not assessed never matches.
- `then` ((object | object | object | object)[]): Executed in array order. At most one auto_reply or forward action per rule.

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

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

Example call:
```json
{
  "name": "inboxes_rules_create",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "name": "Invoice triage",
    "when": {
      "category": "personal",
      "subjectContains": "invoice"
    },
    "then": [
      {
        "type": "label",
        "label": "billing"
      }
    ]
  }
}
```

## inboxes_rules_get

Tool:
```text
inboxes_rules_get
```

Operation [`inboxes.rules.get`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-get): `GET /v1/inboxes/{inboxId}/rules/{ruleId}`

One rule belonging to this inbox. OAuth: requires rules:manage, mail:read, mail:write, mail:send.

- Offered to: A connected agent with an approval that covers `rules:manage` and `mail:read` and `mail:write` and `mail:send`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `ruleId` (string): The rule. Example: `rul_01jc5f1a2b3c4d5e6f7g8h9j0k`

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

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `ruleId` | the path parameter `ruleId` |

Example call:
```json
{
  "name": "inboxes_rules_get",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "ruleId": "rul_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## inboxes_rules_update

Tool:
```text
inboxes_rules_update
```

Operation [`inboxes.rules.update`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-update): `PATCH /v1/inboxes/{inboxId}/rules/{ruleId}`

Replace the supplied fields. Updates cancel pending executions of the old revision; disabling a rule prevents new matches. OAuth: requires rules:manage, mail:read, mail:write, mail:send.

- Offered to: A connected agent with an approval that covers `rules:manage` and `mail:read` and `mail:write` and `mail:send`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: true`, `openWorldHint: true`. 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; reaches outside the account: it sends mail or posts to a URL.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `ruleId` (string): The rule. Example: `rul_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `name` (string, optional)
- `enabled` (boolean, optional)
- `when` (object, optional): All supplied conditions must match. At least one condition is required.
  - `category` ("personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious", optional)
  - `sender` (string (email), optional): Exact normalized From address. A match is not proof of sender identity.
  - `subjectContains` (string, optional): Case-insensitive subject substring, not a regular expression.
  - `minRiskLevel` ("low" | "medium" | "high" | "critical", optional): The message's risk level is this or higher. A message that was not assessed never matches.
  - `senderStanding` ("trusted" | "known" | "new" | "blocked", optional): The sender's standing when the message arrived. A message that was not assessed never matches.
- `then` ((object | object | object | object)[], optional): Executed in array order. At most one auto_reply or forward action per rule.

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

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `ruleId` | the path parameter `ruleId` |

Example call:
```json
{
  "name": "inboxes_rules_update",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "ruleId": "rul_01jc5f1a2b3c4d5e6f7g8h9j0k",
    "enabled": false
  }
}
```

## inboxes_rules_delete

Tool:
```text
inboxes_rules_delete
```

Operation [`inboxes.rules.delete`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-delete): `DELETE /v1/inboxes/{inboxId}/rules/{ruleId}`

Stops new matches and cancels pending executions. Already-running mail cannot be recalled. Execution history remains readable. OAuth: requires rules:manage, mail:read, mail:write, mail:send.

- Offered to: A connected agent with an approval that covers `rules:manage` and `mail:read` and `mail:write` and `mail:send`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- 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**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `ruleId` (string): The rule. Example: `rul_01jc5f1a2b3c4d5e6f7g8h9j0k`

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

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `ruleId` | the path parameter `ruleId` |

Example call:
```json
{
  "name": "inboxes_rules_delete",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "ruleId": "rul_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## inboxes_rules_runs

Tool:
```text
inboxes_rules_runs
```

Operation [`inboxes.rules.runs`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-runs): `GET /v1/inboxes/{inboxId}/rules/{ruleId}/runs`

The immutable rule snapshots' execution outcomes, newest first. Interrupted or ambiguous sends are uncertain and never automatically re-sent. History remains after the rule is deleted. OAuth: requires rules:manage, mail:read, mail:write, mail:send.

- Offered to: A connected agent with an approval that covers `rules:manage` and `mail:read` and `mail:write` and `mail:send`. 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 account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `ruleId` (string): The rule. Example: `rul_01jc5f1a2b3c4d5e6f7g8h9j0k`
- `limit` (integer, optional): Page size, 1 to 100. Defaults to 50.
- `offset` (integer, optional): Rows to skip. Defaults to 0.

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

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `ruleId` | the path parameter `ruleId` |
| `limit` | the query parameter `limit` |
| `offset` | the query parameter `offset` |

Example call:
```json
{
  "name": "inboxes_rules_runs",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "ruleId": "rul_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```
