Skip to main content
Glama

dns_patch_record

Destructive

Modify DNS records of one type by adding, removing, or replacing entries while leaving other record types untouched. Use it for multi-value TXT or multiple MX updates.

Instructions

Частично изменить записи одного типа (add/remove/replace).

Внутри: getData → merge → changeRecords. Прочие типы в зоне не затрагиваются. Удобно для многозначных TXT (SPF + DKIM + verification) и нескольких MX.

  • add — JSON-массив записей для добавления к существующим

  • remove — JSON-массив записей для удаления (match по полям кроме ttl)

  • replace — JSON-массив для полной замены массива этого типа (если задан, add и remove игнорируются)

Примеры: type="TXT", add='[{"txtdata":"google-site-verification=abc"}]' — добавить к существующим TXT-записям type="TXT", remove='[{"txtdata":"v=spf1 include:old.example"}]' — снять старую SPF type="MX", replace='[{"exchange":"mx.yandex.net","preference":10}]' — заменить весь массив MX одной записью

Args: fqdn: Имя домена type: Тип записи (A, AAAA, MX, TXT, CNAME, NS) add: JSON-массив для добавления remove: JSON-массив для удаления replace: JSON-массив для полной замены этого типа force: Продолжить при наличии CAA/SRV

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addNo[]
fqdnYes
typeYes
forceNo
removeNo[]
replaceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and non-readOnly, and the description adds real context beyond that: it explains the merge pipeline, that other record types are untouched, and documents the force flag as 'continue despite CAA/SRV presence'. It doesn't spell out auth or rate-limit behavior, but for a destructive mutation the disclosed mechanics are substantial.

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 the purpose and internal pipeline, then structured bullets and examples. Efficient given the complexity, though the three examples are a bit redundant with the bullets.

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?

The JSON-array formats, match/precedence semantics, force flag and multi-value use cases are all covered, which is what an agent needs to call this tool correctly. Output schema exists, so the description needn't explain return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the burden — and it does. Each of add/remove/replace is documented with format (JSON array), matching rules (match by fields except ttl), and precedence, plus fqdn/type/force defined, with worked examples. This fully compensates for the empty 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?

The description states a precise verb+resource+scope: partial modification of records of a single type, with the internal pipeline getData → merge → changeRecords. It distinguishes itself from siblings like dns_set_a/dns_set_txt/dns_set_records by framing this as a partial (add/remove/replace) operation rather than a full overwrite.

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?

It gives concrete usage conditions ('Удобно для многозначных TXT и нескольких MX') and semantics for add/remove/replace including the preemption rule (if replace is set, add and remove are ignored). It doesn't explicitly compare against sibling tools like dns_set_a or dns_set_records, so a 4 rather than 5.

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