MCP tools: Domains

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

domains_list

Tool for 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

{
  "name": "domains_list",
  "arguments": {}
}

domains_create

Tool for 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
  • namestringrequired

    Trimmed, lowercased and validated as a domain by the Worker. Example: agents.example.com

Example call

{
  "name": "domains_create",
  "arguments": {
    "name": "agents.example.com"
  }
}

domains_get

Tool for 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
  • domainIdstringrequired

    The custom domain. Example: dom_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
domainIdthe path parameter domainId

Example call

{
  "name": "domains_get",
  "arguments": {
    "domainId": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}

domains_verify

Tool for 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
  • domainIdstringrequired

    The custom domain. Example: dom_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
domainIdthe path parameter domainId

Example call

{
  "name": "domains_verify",
  "arguments": {
    "domainId": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}

domains_delete

Tool for 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
  • domainIdstringrequired

    The custom domain. Example: dom_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
domainIdthe path parameter domainId

Example call

{
  "name": "domains_delete",
  "arguments": {
    "domainId": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}

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