Skip to main content
Glama

add_dns_record

Create or update DNS records in a zone, including A, AAAA, CNAME, MX, TXT, and SRV entries, with optional SOA serial updates.

Instructions

Add or update a DNS record in a zone (pdns/add_dns). Requires pdns/edit permission. For SRV records, fill in proto/priority/weight/port/target. Fields mname/rname are marked required for SOA checks in the docs — fill them in on error.

Input Schema

NameRequiredDescriptionDefault
ttlNoTTL in seconds, defaults to 3600
nameNoRecord name, e.g. www
portNoPort for SRV
typeYesRecord type: A, AAAA, CNAME, MX, TXT, SRV…
zoneYesZone name
mnameNoPrimary NS in the SOA record
protoNoProtocol for SRV, e.g. tcp
rnameNoAdmin email in the SOA record
targetNoTarget domain for SRV
weightNoWeight for SRV
confirmYesMust be true to run the operation.
contentYesRecord value, e.g. 10.56.121.5
old_nameNoPrevious record name — for renaming
priorityNoPriority for SRV/MX
increase_soa_serialNoAuto-increment SOA serial (defaults to true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv1.0.3
    • changedInput schema / properties / content / description
      Previous value: -"Значение записи, например 10.56.121.5"New value: +"Record value, e.g. 10.56.121.5"
    • changedInput schema / properties / increase_soa_serial / description
      Previous value: -"Автоинкремент SOA-сериала (по умолчанию true)"New value: +"Auto-increment SOA serial (defaults to true)"
    • changedInput schema / properties / mname / description
      Previous value: -"Primary NS в SOA-записи"New value: +"Primary NS in the SOA record"
    • changedInput schema / properties / name / description
      Previous value: -"Имя записи, например www"New value: +"Record name, e.g. www"
    • changedInput schema / properties / old_name / description
      Previous value: -"Прежнее имя записи — для переименования"New value: +"Previous record name — for renaming"
    • changedInput schema / properties / port / description
      Previous value: -"Порт для SRV"New value: +"Port for SRV"
    • changedInput schema / properties / priority / description
      Previous value: -"Приоритет для SRV/MX"New value: +"Priority for SRV/MX"
    • changedInput schema / properties / proto / description
      Previous value: -"Протокол для SRV, например tcp"New value: +"Protocol for SRV, e.g. tcp"
    • changedInput schema / properties / rname / description
      Previous value: -"Email администратора в SOA-записи"New value: +"Admin email in the SOA record"
    • changedInput schema / properties / target / description
      Previous value: -"Целевой домен для SRV"New value: +"Target domain for SRV"
    • changedInput schema / properties / ttl / description
      Previous value: -"TTL в секундах, по умолчанию 3600"New value: +"TTL in seconds, defaults to 3600"
    • changedInput schema / properties / type / description
      Previous value: -"Тип записи: A, AAAA, CNAME, MX, TXT, SRV…"New value: +"Record type: A, AAAA, CNAME, MX, TXT, SRV…"
    • changedInput schema / properties / weight / description
      Previous value: -"Вес для SRV"New value: +"Weight for SRV"
    • changedInput schema / properties / zone / description
      Previous value: -"Имя зоны"New value: +"Zone name"
  2. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so safety profile is covered. The description adds real behavioral value beyond that: the required pdns/edit permission, the upsert semantics ('add or update'), and error-recovery guidance for SOA. It does omit that confirm must be true to execute, which is a notable guard the agent must know.

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?

Three compact sentences, front-loaded with purpose then prerequisites then type-specific detail. No filler, though the final 'fill them in on error' clause is slightly cryptic out of context.

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 15-parameter mutation tool with no output schema, the description covers purpose, auth, and the trickiest record types. It omits mention of the mandatory confirm flag and increase_soa_serial default, but those are documented in the schema, so the gap is minor.

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 baseline is 3, but the description adds cross-field conditional meaning the schema lacks: it ties proto/priority/weight/port/target together specifically for SRV records and explains the mname/rname practical trigger (SOA check failure). That is genuine guidance beyond the flat per-parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (add or update) and resource (DNS record in a zone) plus an internal API hint (pdns/add_dns). It clearly contrasts with the delete_dns_record sibling by verb, but never names or distinguishes itself from other write siblings like add_dns_zone or edit_dns_subdomain.

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?

Gives actionable context: the pdns/edit permission requirement, when to populate SRV fields, and the SOA-fill-on-error tip. However, it never states when to use this tool versus alternatives such as edit_dns_subdomain or delete_dns_record, leaving the routing decision to inference.

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

Deploy Server

Other Tools