Skip to main content
Glama

Create TXT Record

create_txt_record
DestructiveIdempotent

Creates a TXT record for SPF, DKIM, DMARC, or domain verification, replacing all TXT records with the same name; check existing records first to avoid breaking authentication.

Instructions

Create a TXT record (text data) for a domain. Useful for SPF, DKIM, DMARC, verification, etc. WARNING: This replaces ALL existing TXT records with the same name — previous TXT records for this name will be overwritten, not merged. Overwriting TXT records can break email authentication (SPF/DKIM/DMARC) or domain verification. Use list_dns_records first to check for existing records.

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>",
      "value": "<value>"
    },
    "name": "create_txt_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoTTL in seconds
nameYesRecord name (subdomain, use "@" for root)
valueYesText value (e.g. "v=spf1 include:example.com -all")
domainYesThe domain name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes well beyond that by specifying exactly what is destroyed: 'replaces ALL existing TXT records with the same name — previous TXT records for this name will be overwritten, not merged.' It also names the real-world consequence (broken SPF/DKIM/DMARC or domain verification), which an agent needs to justify caution or confirmation. No contradiction with the declared annotations.

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 purpose, then use cases, then the destructive warning and the remediation step — a sensible order with no wasted preamble. The 'etc.' in the use-case list is mildly loose but does not cost much, and every other sentence carries actionable information.

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?

For a destructive mutation with no output schema, the definition covers the critical unknowns: scope of destruction, risk to email auth, and the recommended pre-check. Minor gaps remain — nothing about propagation timing, TTL behavior on replacement, or what a successful response returns — but these are secondary for a four-parameter tool with full schema coverage.

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 all four parameters (domain, name, value, ttl) are already documented with examples such as '@' for root and an SPF sample value. The description adds no parameter-level meaning beyond that, 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 ('Create a TXT record') and immediately scopes the record type with parenthetical clarification ('text data') plus concrete use cases (SPF, DKIM, DMARC, verification). This clearly separates it from the many sibling create_*_record tools without needing to open 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?

Explicitly prescribes a prerequisite: 'Use list_dns_records first to check for existing records,' naming the sibling to call. It also frames the overwrite-vs-merge tradeoff that motivates that pre-check. It stops short of stating when not to use this tool (e.g., when an existing TXT set must be preserved, or pointing to update/delete alternatives), so it falls just short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.