Skip to main content
Glama

Add Domain

add_domain

Add a sending domain for authentication (SPF, DKIM, DMARC). Returns the DNS records the user must publish at their DNS provider (type, host, value, status, what to do). Verification happens after the records are published; check with get_domain. Set dry_run: true to validate without adding.

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": {
      "domain": "<domain>"
    },
    "name": "add_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomain or subdomain to send from, e.g. example.com or news.example.com
dry_runNoValidate and show what would be added without adding anything

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / domain / description
      Previous value: -"Domain or subdomain to send from, e.g. example.com or news.example.com,required"New value: +"Domain or subdomain to send from, e.g. example.com or news.example.com"
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-readonly, non-idempotent, non-destructive, open-world write; the description adds real value beyond that by explaining that the operation is only the first half of an asynchronous flow and returns actionable DNS records. It omits failure behavior (e.g., duplicate domain, quota, permission errors), which is the main remaining gap.

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

Conciseness5/5

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

Three tight sentences, front-loaded with what the tool does, then the return payload, then the follow-up/verification path. The parenthetical field list and the dry_run note are compact and each sentence carries distinct information.

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 two-parameter tool with no output schema, the description covers the action, the returned DNS record structure, the post-publication verification lifecycle, and the safe-preview option. An agent can sequence add_domain → publish records → get_domain/verify_domain correctly from this alone.

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 both parameters are already documented with examples and semantics. The description's 'Set dry_run: true to validate without adding' restates the schema rather than adding new meaning, so the baseline of 3 applies.

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?

States a specific verb and resource ('Add a sending domain') plus the scope of authentication it sets up (SPF, DKIM, DMARC), which clearly separates it from add_sender, update_domain, and verify_domain. It even discloses what the call produces (DNS records to publish).

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 clear usage context: verification happens only after records are published, status should be checked with get_domain, and dry_run validates first. It does not cover the when-not case, such as using update_domain when the domain already exists or verify_domain to trigger verification, so it stops short of full alternative routing.

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.

Resources