Skip to main content
Glama

Update DNS record

update_dns_record
DestructiveIdempotent

Modify an existing DNS record by ID, changing only the fields you provide. Find the record ID with list_dns_records first; changes may require confirmation.

Instructions

Change an existing DNS record (find its id with list_dns_records). Only the fields you pass are changed. When the client supports it, the user is asked to confirm the old and new values first; if they decline, nothing changes and the result has status 'declined' (or 'cancelled').

Input Schema

NameRequiredDescriptionDefault
idYesRecord id from list_dns_records.
tagNoCAA: tag.
flagNoCAA: flag (usually 0).
nameNoNew name: '@', a label or the FQDN.
portNoSRV: port.
typeYesRecord type: a, aaaa, cname, mx, txt, ns, srv, caa, tlsa, sshfp, or url (Zone's HTTP redirect record).
zoneYesDNS zone, e.g. 'example.com'.
weightNoSRV: weight.
priorityNoMX, SRV: priority.
selectorNoTLSA: selector 0–1.
algorithmNoSSHFP: algorithm (1=RSA, 2=DSA, 3=ECDSA, 4=Ed25519).
destinationNoNew value.
matching_typeNoTLSA: matching type 0–2.
redirect_typeNoURL: HTTP redirect status, 301 (default) or 302.
fingerprint_typeNoSSHFP: fingerprint type (1=SHA-1, 2=SHA-256).
certificate_usageNoTLSA: certificate usage 0–3.

Output Schema

NameRequiredDescriptionDefault
idNo
typeNo
zoneNo
recordNo
statusNo
messageNoSet when the user declined or dismissed the confirmation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the interactive confirmation flow, that declining leaves state unchanged, and the exact result status values ('declined'/'cancelled'). It also discloses partial-update semantics, which complements but is not implied by destructiveHint=true or idempotentHint=true.

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?

Three tight sentences, front-loaded with the action, then the update semantics, then the confirmation caveat. No filler and no restatement of the record-type field matrix that the schema already covers.

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 16-parameter mutation tool with a full output schema and rich annotations, this covers the essentials: how to identify the record, how partial updates behave, and what happens on decline. It does not mention that type-specific fields (CAA/SRV/TLSA/SSHFP) only apply to matching record types, leaving that to the schema.

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 per-field meaning is already documented; the description adds genuine semantic value with the merge/patch rule ('only the fields you pass are changed'). The id-sourcing note duplicates the schema's own description of `id`, which keeps this from a 5.

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 ('Change an existing DNS record') and implicitly separates itself from create_dns_record/delete_dns_record via 'existing'. It also names the sibling that supplies the required identifier, so an agent knows exactly what tool feeds this one.

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?

Gives concrete pre-call guidance: obtain the `id` from list_dns_records, and note that only supplied fields are modified, which tells the agent to send a minimal patch rather than a full record. It stops short of explicit when-not-to-use guidance (e.g., use delete_dns_record to remove, create_dns_record for new records).

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