Skip to main content
Glama

Create domain

create_domain

Add a sending domain. region is optional: this deployment serves us-east-1, eu-west-1 (default us-east-1) and refuses any other. A domain has one region; to move it, delete and re-add it. Returns the DNS records to create; the domain sends once they verify. Open and click tracking start off; pass open_tracking/click_tracking together with a tracking_subdomain to stand the domain up tracked in one call — its Tracking CNAME then comes back with the other records (same rules as update_domain).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
regionNoSES region of the identity, one of the regions this deployment serves (the values listed here; the first is the default). Any other region is rejected with 422. A domain has one region: to move it, delete and re-add it.
open_trackingNoInject a tracking pixel served from the tracking subdomain and record email.opened events. Off by default.
click_trackingNoRewrite links to redirect through the tracking subdomain and record email.clicked events. Off by default.
custom_return_pathNosend
tracking_subdomainNoDNS label of the branded tracking host, e.g. "links" for links.<domain>. Setting it adds a Tracking CNAME to records[]; links are tracked through it once that CNAME resolves. Required on MepMail Cloud to turn tracking on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare that this is a non-destructive, closed-world write. The description goes much further: region is fixed at creation and unsupported values are refused, the domain does not send until DNS records verify, tracking defaults to off, and the response carries the DNS records (plus the Tracking CNAME when a subdomain is supplied). Those are exactly the operational facts an agent needs before invoking a create.

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?

Front-loaded with the core action, then progressively discloses region rules, verification behavior, and the tracking shortcut. The em-dash clause in the final sentence is dense and reads as a single run-on, but every sentence carries distinct information with no filler.

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

Completeness5/5

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

There is no output schema, and the description compensates by saying the call returns the DNS records the caller must create and that sending begins only after verification. Combined with the region and tracking constraints, an agent has everything needed to call this correctly and interpret the result.

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

Parameters4/5

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

With 67% schema coverage the schema already documents region, tracking toggles, and tracking_subdomain, so the description does not need to restate them. What it does add is the cross-parameter constraint — that open_tracking/click_tracking must be passed together with a tracking_subdomain, and that the Tracking CNAME is only emitted under that condition. Notably it never mentions custom_return_path, one of six parameters.

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

Purpose4/5

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

"Add a sending domain" gives a specific verb and resource, and the follow-on sentences describe what the creation produces (DNS records, verification gating). It references update_domain for the tracking rules but never explicitly distinguishes itself from update_domain/delete_domain as the create-versus-modify choice.

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?

It clearly frames the when-to-use case for tracking: leave open_tracking/click_tracking off by default, or pass them together with a tracking_subdomain to stand the domain up tracked in one call. It also redirects the region-change case to delete-and-re-add, which effectively points at delete_domain. Missing an explicit statement of when to use update_domain instead, but the guidance is beyond merely implied.

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.