Skip to main content
Glama

Create domain

create_domain

Add a sending domain. A subdomain of the company's domain (mail.example.com) keeps the app's email on its own reputation and leaves the team's mailboxes and DNS as they are. DNS must still be applied and verified before production sends. Records with already_set are already in place: leave them alone.

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
nameYesDomain name, ideally a subdomain (mail.example.com)
tenantNoGive the domain to this tenant; only that tenant can then send from it. The tenant's external id (your id for that customer) or its Groundmail id
inbound_enabledNoEnable inbound receiving on this domain

Output Schema

NameRequiredDescriptionDefault
domainYesThe domain
recordsYesDNS records to publish for the domain
inbound_noteNoGuidance about adding the inbound MX records
inbound_recordsNoMX records to publish when inbound receiving is enabled

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / domain / properties / blocklists
      Added value: +{
      +  "description": "Daily check of the domain and its main domain on Spamhaus DBL, SURBL and URIBL. A listing never pauses sending",
      +  "properties": {
      +    "checked_at": {
      +      "description": "When the last daily blocklist check ran (ISO 8601)",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "listings": {
      +      "description": "Current listings, main domain first",
      +      "items": {
      +        "properties": {
      +          "info_url": {
      +            "description": "Where to look the name up and request removal",
      +            "type": "string"
      +          },
      +          "list": {
      +            "description": "List name: Spamhaus DBL, SURBL or URIBL",
      +            "type": "string"
      +          },
      +          "list_id": {
      +            "description": "List id: spamhaus-dbl, surbl or uribl",
      +            "type": "string"
      +          },
      +          "listed_since": {
      +            "description": "When the daily check first found it listed (ISO 8601)",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "The listed name: the domain itself or its main domain",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "What the list says it is listed for, for example spam domain",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "list",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "main_domain": {
      +      "description": "The main (registrable) domain",
      +      "type": "string"
      +    },
      +    "names": {
      +      "description": "Names checked: the domain and its main domain, or one name for a main domain",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "removed": {
      +      "description": "Recent removals, newest first",
      +      "items": {
      +        "properties": {
      +          "info_url": {
      +            "description": "Where to look the name up and request removal",
      +            "type": "string"
      +          },
      +          "list": {
      +            "description": "List name: Spamhaus DBL, SURBL or URIBL",
      +            "type": "string"
      +          },
      +          "list_id": {
      +            "description": "List id: spamhaus-dbl, surbl or uribl",
      +            "type": "string"
      +          },
      +          "listed_since": {
      +            "description": "When the daily check first found it listed (ISO 8601)",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "The listed name: the domain itself or its main domain",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "What the list says it is listed for, for example spam domain",
      +            "type": "string"
      +          },
      +          "removed_at": {
      +            "description": "When it came off the list (ISO 8601)",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "list",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "Blocklist status: clear, listed, or unknown (not checked yet, not verified, or no list answered)",
      +      "type": "string"
      +    },
      +    "unanswered_lists": {
      +      "description": "Lists that did not answer the last check",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Domain name (example.com)"New value: +"Domain name, ideally a subdomain (mail.example.com)"
    • addedOutput schema / properties / inbound_records / items / properties / already_set
      Added value: +{
      +  "description": "True when the domain already publishes a record that does this job (its own DMARC record). The value is what is there now: nothing to add or change, never publish a second one",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / records / items / properties / already_set
      Added value: +{
      +  "description": "True when the domain already publishes a record that does this job (its own DMARC record). The value is what is there now: nothing to add or change, never publish a second one",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / tenant
      Added value: +{
      +  "description": "Give the domain to this tenant; only that tenant can then send from it. The tenant's external id (your id for that customer) or its Groundmail id",
      +  "type": "string"
      +}
    • addedOutput schema / properties / domain / properties / tenant
      Added value: +{
      +  "description": "External id of the tenant that owns the domain. Absent for a domain the whole account can use",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive, open-world write. The description adds real context beyond them: the domain is not usable for production until DNS is applied and verified, and records flagged already_set must be left untouched, which hints at partial pre-existing state on retry. It does not explain what happens if the domain already exists or how name collisions are handled.

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?

Three sentences, front-loaded with the action, each carrying a distinct idea: purpose, subdomain rationale, DNS verification requirement, and the already_set caveat. Slightly dense but no 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 values need not be described, and annotations cover the safety profile. For a 3-parameter create operation the description covers the key operational caveats; only permission requirements and duplicate-domain behavior are absent.

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 coverage is 100%, so all three parameters are already documented, and the description adds only reinforcement for 'name' (subdomain recommended, with the reputation rationale). The 'tenant' and 'inbound_enabled' parameters get no additional meaning from the description, so the baseline of 3 applies.

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?

States a specific verb and resource ('Add a sending domain') and immediately scopes it to production email sending. It does not name the sibling tools (apply_domain_dns, verify_domain) that carry out the follow-on DNS steps, so differentiation is implied rather than explicit.

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?

Gives concrete selection guidance: prefer a subdomain like mail.example.com so the app's sending reputation stays isolated from team mailboxes, and warns that DNS must be applied and verified before production sends. It lacks explicit prerequisites such as permissions, plan limits, or when to pick a tenant-scoped vs. standalone domain.

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.