Skip to main content
Glama

add_dns_record

Добавить или изменить DNS-запись в зоне (pdns/add_dns). Требует права pdns/edit. Для SRV-записей заполните proto/priority/weight/port/target.

Instructions

Добавить или изменить DNS-запись в зоне (pdns/add_dns). Требует права pdns/edit. Для SRV-записей заполните proto/priority/weight/port/target. Поля mname/rname в документации отмечены как обязательные для SOA-проверок — при ошибке заполните их.

Input Schema

NameRequiredDescriptionDefault
ttlNoTTL в секундах, по умолчанию 3600
nameNoИмя записи, например www
portNoПорт для SRV
typeYesТип записи: A, AAAA, CNAME, MX, TXT, SRV…
zoneYesИмя зоны
mnameNoPrimary NS в SOA-записи
protoNoПротокол для SRV, например tcp
rnameNoEmail администратора в SOA-записи
targetNoЦелевой домен для SRV
weightNoВес для SRV
confirmYesMust be true to run the operation.
contentYesЗначение записи, например 10.56.121.5
old_nameNoПрежнее имя записи — для переименования
priorityNoПриоритет для SRV/MX
increase_soa_serialNoАвтоинкремент SOA-сериала (по умолчанию true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv1.0.3
    • changedInput schema / properties / confirm / description
      Previous value: -"Нужно true, чтобы выполнить операцию."New value: +"Must be true to run the operation."
    • changedInput schema / properties / content / description
      Previous value: -"Значение записи, например 10.56.121.5"New value: +"Значение записи, например 10.56.121.5"
    • changedInput schema / properties / increase_soa_serial / description
      Previous value: -"Автоинкремент SOA-сериала (по умолчанию true)"New value: +"Автоинкремент SOA-сериала (РїРѕ умолчанию true)"
    • changedInput schema / properties / mname / description
      Previous value: -"Primary NS в SOA-записи"New value: +"Primary NS РІ SOA-записи"
    • changedInput schema / properties / name / description
      Previous value: -"Имя записи, например www"New value: +"Имя записи, например www"
    • changedInput schema / properties / old_name / description
      Previous value: -"Прежнее имя записи — для переименования"New value: +"Прежнее РёРјСЏ записи — для переименования"
    • changedInput schema / properties / port / description
      Previous value: -"Порт для SRV"New value: +"РџРѕСЂС‚ для SRV"
    • changedInput schema / properties / priority / description
      Previous value: -"Приоритет для SRV/MX"New value: +"Приоритет для SRV/MX"
    • changedInput schema / properties / proto / description
      Previous value: -"Протокол для SRV, например tcp"New value: +"Протокол для SRV, например tcp"
    • changedInput schema / properties / rname / description
      Previous value: -"Email администратора в SOA-записи"New value: +"Email администратора РІ SOA-записи"
    • changedInput schema / properties / target / description
      Previous value: -"Целевой домен для SRV"New value: +"Целевой домен для SRV"
    • changedInput schema / properties / ttl / description
      Previous value: -"TTL в секундах, по умолчанию 3600"New value: +"TTL РІ секундах, РїРѕ умолчанию 3600"
    • changedInput schema / properties / type / description
      Previous value: -"Тип записи: A, AAAA, CNAME, MX, TXT, SRV…"New value: +"РўРёРї записи: A, AAAA, CNAME, MX, TXT, SRV…"
    • changedInput schema / properties / weight / description
      Previous value: -"Вес для SRV"New value: +"Вес для SRV"
    • changedInput schema / properties / zone / description
      Previous value: -"Имя зоны"New value: +"Имя Р·РѕРЅС‹"
  2. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, open-world behavior, so the bar is lower. The description adds real context beyond that: the required pdns/edit permission, the upsert nature ('add or modify'), and conditional handling for SRV and SOA validation errors. It still does not say what happens on conflict or whether an existing record is overwritten, but it is well above minimum.

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?

Four short, front-loaded sentences: purpose first, then permission, then the two field-specific caveats. No filler, though the SRV/SOA guidance is somewhat terse and would benefit from a little more connective structure.

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 the essentials: what it does, the permission gate, and how to handle the non-obvious SRV and SOA fields. The mandatory confirm flag is adequately documented in the schema, so its absence from the prose is not a gap.

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 description coverage is 100%, so 3 is the baseline. The description goes further by grouping the SRV fields (proto/priority/weight/port/target) and explaining that mname/rname only need filling when SOA checks fail, which is not evident from the per-parameter schema text.

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 and resource ('Add or modify a DNS record in a zone') and even names the underlying API endpoint (pdns/add_dns). It does not explicitly distinguish itself from similar siblings such as add_dns_domain, add_dns_subdomain, or add_dns_zone, so an agent must infer the record-vs-zone/domain boundary.

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?

It gives a prerequisite ('requires pdns/edit permission') and conditional field guidance for SRV and SOA cases, which is genuinely useful. However, there is no explicit statement of when to pick this tool over delete_dns_record, update_ptr_record, or the zone/domain/subdomain adders; usage is only implied.

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