Skip to main content
Glama

Mailrun Agent Identity

Add TXT record

add_txt_record
Idempotent

Add a TXT record (e.g. a site-verification token) to an active root domain. status 201 = created; 200 = the same name and content is already yours (nothing new). Mail records are protected: names containing _dmarc, _domainkey, _mta-sts, _bimi, _acme-challenge or _smtp._tls and content starting v=spf1, v=dmarc1, v=dkim1, v=stsv1, v=tlsrptv1 or v=bimi1 are refused. txt_record_exists = someone else's identical record is already there; txt_name_conflict = the DNS provider refused a TXT at that name because it holds a CNAME; txt_record_limit_reached = at the record cap (details.reason apex_budget: the apex byte budget). On service_unavailable retry the SAME call after retry_after_seconds; it is idempotent.

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": "<name>",
      "content": "<content>"
    },
    "name": "add_txt_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes"@" for the domain apex, a name relative to the domain (e.g. _github-challenge-org), or a full name under the domain (a name ending in "." must already be under the domain).
domainYesRoot domain as returned by list_domains.
contentYesThe record value: printable ASCII, no double quotes or backslashes.

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?

Goes well beyond the annotations: enumerates the protected mail names (_dmarc, _domainkey, _mta-sts, _bimi, _acme-challenge, _smtp._tls) and content prefixes that are refused, spells out error codes (txt_record_exists, txt_name_conflict, txt_record_limit_reached with apex_budget), and explains retry semantics via retry_after_seconds on service_unavailable. That is far richer than idempotentHint/destructiveHint alone.

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-loads the action and success codes, then groups failure semantics, with no filler sentences. It is dense and slightly run-on (protection lists and error codes packed into one paragraph), which costs it a point versus a cleaner structure, but every clause carries signal.

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 non-destructive, idempotent mutation with three fully documented parameters and no output schema, the description supplies success codes, duplicate-handling semantics, provider-level failure modes, and retry guidance. Nothing an agent needs to call it correctly or recover from errors is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real constraint meaning for the name and content parameters — the protected-name and v=spf1-style content refusals are not expressed anywhere in the schema. It does not otherwise elaborate on naming or content format rules already covered by the schema.

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 TXT record') plus the target constraint ('to an active root domain') and a concrete use case (site-verification token). An agent can immediately tell this creates a TXT record versus delete_txt_record or list_txt_records.

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

Usage Guidelines3/5

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

Usage is implied by the resource and example (verification tokens), and the 200-vs-201 outcome tells the agent this is safe to repeat. However, it never says when to prefer this over checking list_txt_records first, nor states explicit prerequisites beyond 'active root 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.

Resources