---
title: "MCP tools: Domains"
description: "The tools of the MCP server under Domains. Account-owned mail domains, DNS records, verification and setup."
url: https://doorman.fyi/docs/mcp/tools/domains
markdown: https://doorman.fyi/docs/mcp/tools/domains.md
area: "SDKs and tools"
section: "MCP server"
---

# MCP tools: Domains

The tools of the MCP server under Domains. Account-owned mail domains, DNS records, verification and setup.

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

## domains_list

Tool:
```text
domains_list
```

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

The account's active custom domains and their DNS records. Reading remains available when the transport is disabled. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. 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.

The tool takes no input.

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

## domains_create

Tool:
```text
domains_create
```

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

Creates the domain at the configured mail transport and returns its DNS records. Requires a paid plan; every plan has a ceiling of 50 active domains, and an account may add 20 domains per 24 hours. No inbox can be created on the domain until it verifies, and a domain that has not verified 7 days after it was added is removed (see `expiresAt`), which frees its name. A name another account holds, here or at the mail transport, answers 409 `already_exists`. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. 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.

**Input**
- `name` (string): Trimmed, lowercased and validated as a domain by the Worker. Example: `agents.example.com`

Example call:
```json
{
  "name": "domains_create",
  "arguments": {
    "name": "agents.example.com"
  }
}
```

## domains_get

Tool:
```text
domains_get
```

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

One live custom domain belonging to the account; another account's domain is a 404. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. 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**
- `domainId` (string): The custom domain. Example: `dom_01jc5f1a2b3c4d5e6f7g8h9j0k`

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

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

Example call:
```json
{
  "name": "domains_get",
  "arguments": {
    "domainId": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## domains_verify

Tool:
```text
domains_verify
```

Operation [`domains.verify`](https://doorman.fyi/docs/reference/domains.md#domains-verify): `POST /v1/domains/{domainId}/verify`

Asks the mail transport to verify the required records, then returns the current status. Verification is asynchronous; repeated requests are rate limited. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. 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.

**Input**
- `domainId` (string): The custom domain. Example: `dom_01jc5f1a2b3c4d5e6f7g8h9j0k`

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

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

Example call:
```json
{
  "name": "domains_verify",
  "arguments": {
    "domainId": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```

## domains_delete

Tool:
```text
domains_delete
```

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

Removes the domain and its inboxes, revokes their keys and closes their streams. Removal at the mail transport is queued. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. 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**
- `domainId` (string): The custom domain. Example: `dom_01jc5f1a2b3c4d5e6f7g8h9j0k`

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

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

Example call:
```json
{
  "name": "domains_delete",
  "arguments": {
    "domainId": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}
```
