Skip to main content
Glama

DNS-Eintrag ändern

update_dns_record
Destructive

Ändert EINEN bestehenden DNS-Eintrag einer Domain (Typen A, AAAA, CNAME, TXT, MX, SRV, CAA) — etwa die IP einer Website, ein MX-Ziel, einen SPF-Wert oder den Port eines SRV-Eintrags. Der Typ eines Eintrags lässt sich nicht ändern (dafür delete_dns_record und add_dns_record), NS und SOA lassen sich nie ändern. Ablauf: get_dns_records frisch abrufen, den Eintrag mit seiner Kennung (record_id) und seinen bisherigen Angaben als "alt" übernehmen (genau so, wie er geliefert wurde; opt ist bei MX die Priorität, bei SRV "Priorität Gewicht Port", bei CAA "Flag Art") und die NEUEN Angaben wie bei add_dns_record angeben (alle Felder des neuen Eintrags, nicht nur die geänderten). Der Server prüft, ob der Eintrag hinter der Kennung noch genau derselbe ist; ist er inzwischen geändert oder gelöscht worden, wird nichts geschrieben. Die Änderung wird als Löschen und Neuanlegen ausgeführt, deshalb ändert sich die Kennung — danach get_dns_records neu abrufen. Eine falsche Änderung kann Mailzustellung oder Erreichbarkeit der Website sofort beeinträchtigen — nenne dem Kunden alten und neuen Wert und lass ihn bestätigen.

Input Schema

NameRequiredDescriptionDefault
altYesDer Eintrag so, wie get_dns_records ihn zuletzt geliefert hat. Daran erkennt der Server, ob er inzwischen geändert wurde
artNoNur CAA: neue Art
hostNoNeuer Name VOR der Domain, ohne den Domainnamen ("www", "_dmarc", "@" für die Domain selbst) — wie bei add_dns_record. Bei SRV nicht angeben
portNoNur SRV: neuer Port, ganze Zahl 1–65535, als Zahl und nicht als Text
typeYesTyp des Eintrags; muss dem Typ von "alt" entsprechen
wertNoNur CAA: neuer Wert (Domain der Zertifizierungsstelle, ";" oder bei iodef "mailto:"/"https://"-Adresse)
zielNoNur SRV: neues Ziel, Servername (der abschließende Punkt wird ergänzt)
valueNoNeuer Wert: IP-Adresse (A/AAAA), Hostname (CNAME/MX) oder Text (TXT), höchstens 2048 Zeichen. Bei SRV und CAA nicht angeben
dienstNoNur SRV: neuer Dienst mit führendem Unterstrich, z. B. "_sip"
domainYesDie Domain, z. B. example.de
gewichtNoNur SRV: neues Gewicht, ganze Zahl 0–65535
priorityNoNur MX: neue Priorität, ganze Zahl 0–65535 (z. B. 10)
protokollNoNur SRV: neues Protokoll
record_idYesKennung des Eintrags, genau wie von get_dns_records geliefert — keine geratene Zahl, und keine aus einer früheren Antwort
prioritaetNoNur SRV: neue Priorität, ganze Zahl 0–65535
bestaetigungNoNur für geschützte Einträge (MX, SPF, DKIM, DMARC, A/AAAA der Hauptdomain und von www, sowie die Ziele eines MX): der VOLLE Name des Eintrags, genau wie ihn die Fehlermeldung nennt (Feld required_name). Ohne diese Angabe lehnt der Server mit confirmation_required ab und ändert nichts. Den Namen nur setzen, nachdem der Kunde die Änderung ausdrücklich bestätigt hat — nie vorsorglich mitschicken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: the server performs an optimistic-concurrency check against "alt" and writes nothing if the record changed or was deleted, the update is implemented as delete+recreate so record_id changes, and protected records (MX, SPF, DKIM, DMARC, apex/www A/AAAA, MX targets) require a bestaetigung. It also names the concrete blast radius (Mailzustellung, Erreichbarkeit der Website) and the confirmation duty toward the customer.

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 core action and record types, then the constraints and workflow; nearly every sentence carries a constraint an agent needs. It is a single dense paragraph without line breaks for the workflow, confirmation and warning segments, which hurts scannability for a 16-parameter tool.

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 16-parameter, nested-object mutation with no output schema, the description supplies everything an agent needs: the precondition (fresh read), the idempotency/verification model, the postcondition (new record_id, refetch), the protected-record confirmation gate, and the risk statement. No behavioral gap is left to the schema or annotations.

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 the baseline is 3, but the description adds real semantics on top: "alt" must be the record exactly as delivered (the schema says this too, but the description ties it to the concurrency check), and the new values must include ALL fields of the new record, not just the changed ones — a non-obvious constraint. The type-specific "opt" encoding is restated from the schema rather than extended.

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 (ändert EINEN bestehenden DNS-Eintrag) and enumerates the seven supported record types plus concrete examples (IP einer Website, MX-Ziel, SPF-Wert, SRV-Port). It explicitly contrasts itself with add_dns_record and delete_dns_record, so an agent can distinguish it from siblings without opening a 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 when-not conditions (type cannot be changed → use delete_dns_record + add_dns_record; NS/SOA never editable) and a numbered workflow: fetch fresh via get_dns_records, pass record_id and previous values as "alt", supply all new fields like add_dns_record, then refetch. Alternatives and prerequisites are named rather than implied.

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.

Resources