Skip to main content
Glama

Add DNS record

dns_add_record

Add a DNS record to a domain's zone on Sitequest's nameservers. It is added next to existing records of the same name and type, never replacing one: check dns_list_records first to avoid duplicates, use dns_edit_record to change a value and dns_delete_record to remove one. Only served while the domain uses Sitequest's nameservers (see domain_get). No CNAME at the apex or beside other records of the same name; one SPF TXT record per name. Resolvers see the change within minutes; a replaced record can be cached up to its old TTL.

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": {
      "id": "<id>",
      "type": "<type>",
      "name": "<name>",
      "ttl": "<ttl>",
      "data": "<data>"
    },
    "name": "dns_add_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe domain ID
ttlYesTime to live in seconds, at least 60. 3600 is usual; use 300 before a planned change
dataYesRecord value: an IPv4 address for A, IPv6 for AAAA, a hostname for CNAME, ALIAS and NS, the text for TXT
nameYesRecord name relative to the domain: '@' for the domain itself, 'www' for www.<domain>, '_dmarc' for _dmarc.<domain>
typeYesDNS record type

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover the read-only/destructive flags, but the description goes well beyond them: it declares the additive semantics ('added next to existing records... never replacing one'), the propagation window ('within minutes'), and the caching caveat for replaced records. It also documents the constraint set the server enforces (no apex CNAME, no CNAME beside same-name records, one SPF TXT per name), which is exactly the behavioral detail an agent needs before calling a mutation.

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?

Four sentences, each load-bearing: what it does, how it differs from siblings, preconditions, and post-call behavior. The ordering is front-loaded with the action and the routing guidance before the caveats.

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 5-required-parameter mutation with no output schema, the definition covers prerequisites, sibling routing, server-side validation rules, and timing expectations. Nothing an agent needs in order to invoke it correctly is absent.

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 a baseline of 3 would apply, but the description adds cross-parameter meaning the schema cannot express — the CNAME-at-apex and same-name-type coexistence rules tie `name` and `type` together, and the TTL/caching note qualifies the `ttl` field. Per-parameter formats remain the schema's job, which is appropriate.

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?

Opens with a specific verb and resource ('Add a DNS record to a domain's zone') and immediately scopes it to Sitequest's nameservers. It explicitly separates itself from dns_edit_record, dns_delete_record and dns_list_records, so an agent can pick it 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 Guidelines5/5

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

Gives explicit pre-call guidance ('check dns_list_records first to avoid duplicates'), names the two alternative tools and the conditions that select them (change a value, remove one), and states a prerequisite plus its verification path ('Only served while the domain uses Sitequest's nameservers (see domain_get)').

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.