Skip to main content
Glama

Add sending domain

add_domain

Add a custom domain to send and receive mail on, such as acme.com. Returns {id, name, status, provider, can_auto_configure, records: [{type, name, value, priority, required, status, fix}], next_step, existing_mx?}. Publish every required record at the DNS host. existing_mx means the domain already gets mail elsewhere: adding our MX moves it, so prefer a subdomain such as mail.acme.com. Errors: invalid_domain, reserved_domain, domain_exists, domain_taken, insufficient_scope. Next: publish the records, then call verify_domain; then create_inbox with domain set to it.

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": "add_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDomain name to send and receive on, such as "acme.com" or "mail.acme.com".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare mutation/safety flags; the description adds the substantive behavior an agent actually needs: the exact return payload shape, the mail-routing side effect of existing_mx ("adding our MX moves it"), and a concrete error taxonomy (invalid_domain, reserved_domain, domain_exists, domain_taken, insufficient_scope). The insufficient_scope error also implicitly discloses an authorization requirement, which the annotations do not cover. Nothing here contradicts readOnlyHint=false, destructiveHint=false, or idempotentHint=false (duplicate adds surface as domain_exists).

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?

Purpose and the critical DNS/MX caveat are front-loaded, and the trailing sentence packs return shape, errors, and the next-call chain without filler. The terse field enumeration of the return object is dense and slightly hard to parse, but it earns its space given there is no output schema.

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?

For a single-parameter mutation with no output schema, the description covers everything needed to call it correctly: the required DNS publication step, the return fields (including the records array and next_step), the error cases, and the follow-up sequence to verify_domain and create_inbox. The existing_mx caveat addresses the highest-risk failure mode of the operation.

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?

There is a single parameter with 100% schema description coverage, so the schema already carries the meaning, and the baseline is a 3. The description's "such as acme.com" and the subdomain example restate what the schema says; the only added value is the implicit link between existing_mx and passing a mail.-prefixed name, which is framed as workflow guidance rather than parameter semantics.

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?

"Add a custom domain to send and receive mail on, such as acme.com" gives a specific verb (add) and a specific resource (sending/receiving domain) with a concrete example. It also positions the tool relative to siblings by naming verify_domain and create_inbox as the follow-up chain, so an agent can place it in the workflow without opening any schema.

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?

The description states the prerequisite action ("Publish every required record at the DNS host") and gives an explicit decision rule for the ambiguous case: when existing_mx is returned, it tells the agent to prefer a subdomain such as mail.acme.com. It also sequences the next calls. It stops short of explicit when-not-to-use guidance (e.g., what to do if the domain is already on the account), but the operational context is clear.

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.