Skip to main content
Glama

List email domains

list_email_domains
Read-onlyIdempotent

List the workspace's sending identities and default sender address.

    The listing helps select a sender for ``send_email``.
    Only identities with ``verification_status="verified"`` can send.
    For ``kind="custom"``, ``domain`` is a domain supporting any local part.
    For ``kind="hail_mail"``, it is already a complete email address.
    One verified custom domain takes priority over the Hail mail address.
    With several verified custom domains, ``default_from`` is null and email sending requires an explicit sender.
    A custom domain with ``sends_enabled`` false cannot send: it is skipped for picks and refuses an explicit ``from_``.
    Toggle it with PATCH ``/v1/email-domains/{id}`` (custom domains only).
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_email_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum sending identities to include on this page. Omitted: 50.
cursorNoPagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  2. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many items one page holds. ``next_cursor`` in the response points to the next page. Omitted: the API returns 50."New value: +"Maximum sending identities to include on this page. Omitted: 50."
    • addedOutput schema / $defs
      Added value: +{
      +  "DnsRecordSchema": {
      +    "additionalProperties": true,
      +    "description": "One DNS record the tenant must publish for a sending domain.\n\nCovers DKIM CNAMEs, MAIL FROM MX, and SPF TXT records.",
      +    "properties": {
      +      "name": {
      +        "description": "DNS record name/host to publish (e.g. a CNAME's subdomain).",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "priority": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "MX priority. Only present for type='MX'; null otherwise.",
      +        "title": "Priority"
      +      },
      +      "type": {
      +        "default": "CNAME",
      +        "description": "DNS record type: 'CNAME' (DKIM), 'MX' (MAIL FROM), or 'TXT' (SPF).",
      +        "enum": [
      +          "CNAME",
      +          "MX",
      +          "TXT"
      +        ],
      +        "title": "Type",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "DNS record value to publish (e.g. a CNAME target or TXT content).",
      +        "title": "Value",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value",
      +      "type",
      +      "priority"
      +    ],
      +    "title": "DnsRecordSchema",
      +    "type": "object"
      +  },
      +  "EmailDomainResponse": {
      +    "description": "Read view for an email domain.\n\nThe inbound-action fields (``inbound_enabled``, ``forward_to``,\n``forward_rate_per_hour``) surface what the row has configured for\nincoming mail.",
      +    "properties": {
      +      "created_at": {
      +        "description": "When this domain was added, ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "dns_records": {
      +        "description": "DNS records (DKIM, MAIL FROM MX, SPF) the tenant must publish to verify this domain.",
      +        "items": {
      +          "$ref": "#/$defs/DnsRecordSchema"
      +        },
      +        "title": "Dns Records",
      +        "type": "array"
      +      },
      +      "domain": {
      +        "description": "The DNS domain mail is sent from.",
      +        "title": "Domain",
      +        "type": "string"
      +      },
      +      "email_agent_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The agent that answers mail to this address. Null when none does.",
      +        "title": "Email Agent Id"
      +      },
      +      "email_agent_scope": {
      +        "default": "members",
      +        "description": "Who the agent answers: 'members' or 'anyone'.",
      +        "enum": [
      +          "members",
      +          "anyone"
      +        ],
      +        "title": "Email Agent Scope",
      +        "type": "string"
      +      },
      +      "forward_rate_per_hour": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Configured cap on forwarded messages per hour, if set.",
      +        "title": "Forward Rate Per Hour"
      +      },
      +      "forward_to": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Email addresses inbound mail is forwarded to, if inbound is enabled.",
      +        "title": "Forward To"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this email domain.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "inbound_enabled": {
      +        "default": false,
      +        "description": "Whether this domain accepts and forwards inbound mail.",
      +        "title": "Inbound Enabled",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "description": "'hail_mail' (Hail-hosted address) or 'custom' (your own domain).",
      +        "enum": [
      +          "hail_mail",
      +          "custom"
      +        ],
      +        "title": "Kind",
      +        "type": "string"
      +      },
      +      "local_prefix_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Name prefix of a hail_mail address: the part after the '+'. A free name inside the workspace, such as a person or team. Null for kind='custom'.",
      +        "title": "Local Prefix Name"
      +      },
      +      "local_prefix_org": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "deprecated": true,
      +        "description": "Deprecated: use local_prefix_name. Same value.",
      +        "readOnly": true,
      +        "title": "Local Prefix Org"
      +      },
      +      "local_prefix_user": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "deprecated": true,
      +        "description": "Deprecated: use local_prefix_workspace. Same value.",
      +        "readOnly": true,
      +        "title": "Local Prefix User"
      +      },
      +      "local_prefix_workspace": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Workspace prefix of a hail_mail address: the part before the '+'. It names the workspace, and one workspace only may hold it. Null for kind='custom'.",
      +        "title": "Local Prefix Workspace"
      +      },
      +      "mail_from_domain": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Custom MAIL FROM domain, if configured. Null when using the provider default.",
      +        "title": "Mail From Domain"
      +      },
      +      "mail_from_status": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Verification status of the custom MAIL FROM domain, if one is configured. Secondary to verification_status.",
      +        "title": "Mail From Status"
      +      },
      +      "organization_id": {
      +        "description": "Organization that owns this domain.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "provider": {
      +        "description": "Email sending provider for this domain (currently always 'ses').",
      +        "title": "Provider",
      +        "type": "string"
      +      },
      +      "receive_ready": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True when the domain's published MX points at Hail's inbound host. Only populated by POST /{id}/verify on custom domains; null everywhere else.",
      +        "title": "Receive Ready"
      +      },
      +      "sends_enabled": {
      +        "default": true,
      +        "description": "Send switch for kind='custom' rows. False stops the domain from sending at all: it is skipped by default sender selection and a send that names it explicitly returns 422. Always true for hail_mail rows.",
      +        "title": "Sends Enabled",
      +        "type": "boolean"
      +      },
      +      "updated_at": {
      +        "description": "When this domain was last modified, ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      },
      +      "verification_status": {
      +        "description": "'pending' (not yet verified), 'verified' (ready to send), or 'failed'.",
      +        "enum": [
      +          "pending",
      +          "verified",
      +          "failed"
      +        ],
      +        "title": "Verification Status",
      +        "type": "string"
      +      },
      +      "verified_at": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "When the domain became verified, ISO 8601 timestamp. Null until it is.",
      +        "title": "Verified At"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "organization_id",
      +      "kind",
      +      "domain",
      +      "local_prefix_workspace",
      +      "local_prefix_name",
      +      "verification_status",
      +      "dns_records",
      +      "mail_from_domain",
      +      "mail_from_status",
      +      "provider",
      +      "verified_at",
      +      "inbound_enabled",
      +      "sends_enabled",
      +      "forward_to",
      +      "forward_rate_per_hour",
      +      "email_agent_id",
      +      "email_agent_scope",
      +      "created_at",
      +      "updated_at",
      +      "receive_ready",
      +      "local_prefix_user",
      +      "local_prefix_org"
      +    ],
      +    "title": "EmailDomainResponse",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "default_from": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The From address used when a send omits 'from'. A verified custom domain wins over the hail-mail address. Null when no such default can be resolved (e.g. multiple verified custom domains, or none that can send yet). Computed across the whole organization, not just this page.",
      +        "title": "Default From"
      +      },
      +      "items": {
      +        "description": "Email domains in this page.",
      +        "items": {
      +          "$ref": "#/$defs/EmailDomainResponse"
      +        },
      +        "title": "Items",
      +        "type": "array"
      +      },
      +      "next_cursor": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Opaque cursor for the next page. Null when there are no more results.",
      +        "title": "Next Cursor"
      +      }
      +    },
      +    "required": [
      +      "items",
      +      "next_cursor",
      +      "default_from"
      +    ],
      +    "title": "EmailDomainListResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"list_email_domains_toolDictOutput"
  3. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of items per page. Omitted: 50."New value: +"How many items one page holds. ``next_cursor`` in the response points to the next page. Omitted: the API returns 50."
  5. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial business logic beyond them: verified-only sending, custom vs hail_mail kind semantics, default_from being null when multiple custom domains are verified, and sends_enabled=false causing both pick-skipping and explicit from_ rejection.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first line, and the following sentences each carry distinct sending-rule information. It runs a bit long and drifts toward send_email semantics, but no sentence is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is unnecessary, and the description covers the non-obvious decision rules an agent needs. Pagination and the analytics-only llm_model parameter are left to the schema, which is acceptable but leaves a small gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so limit, cursor, and llm_model are already fully documented in the schema and the description adds nothing about them. The baseline of 3 applies since the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'List the workspace's sending identities and default sender address.' That is enough to distinguish it from siblings like list_emails or get_email, and it also tells the agent what the records represent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly frames the purpose as selecting a sender for send_email, naming the downstream tool and the condition (only verified identities can send). It stops short of stating when not to call this tool, but the selection context is clear and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.