Skip to main content
Glama

Update DNS record

update_dns_record
Destructive

Modify an existing forward DNS record by ID to replace its value, TTL, or comment. Use it when a published DNS answer must change; system-managed records cannot be edited.

Instructions

Update an existing forward DNS record by its ID (PUT), replacing its desired value, TTL or comment. A changed value can replace the public DNS answer after publication. System-managed records cannot be edited. Requires dns:write when using an API key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "zone_id": "<zone_id>",
      "record_id": "<record_id>",
      "name": "<name>",
      "type": "<type>",
      "content": "<content>"
    },
    "name": "update_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoTTL in seconds, allowed range 60-604800. Defaults to 120.
nameYesRecord name. Use @ for apex, or a relative name inside the zone.
typeYesDNS record type. PTR is intentionally not supported here.
commentNoOptional note about this record, max 255 chars.
contentYesDNS record value for the selected type
zone_idYesDNS zone ID
record_idYesDNS record ID to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description still adds material behavioral facts: this is a PUT that replaces the record wholesale, the change can propagate to the public DNS answer after publication, system-managed records are off-limits, and a write scope is required. These are exactly the consequences an agent needs before committing a destructive edit.

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?

Front-loaded with verb, resource, and method, then three short sentences that each carry a distinct fact (propagation side effect, editability restriction, permission requirement). No filler and nothing important buried.

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 7-parameter destructive mutation with no output schema, the description covers the safety and side-effect story well. It stops just short of clarifying what happens to optional fields (ttl, comment) omitted from a PUT-style replacement, which is the one gap an agent could still trip over.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The phrase 'replacing its desired value, TTL or comment' maps loosely onto content/ttl/comment and hints at full-replacement semantics, but it adds no syntax, range, or default detail beyond what the schema already documents.

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+resource with scope qualifiers: 'update an existing forward DNS record by its ID (PUT), replacing its desired value, TTL or comment.' The 'existing ... by its ID' and PUT-replacement wording implicitly separates it from the create/delete/upsert DNS siblings without naming any of them explicitly, which keeps it just short of a 5.

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 a clear precondition ('Requires dns:write when using an API key') and an explicit exclusion ('System-managed records cannot be edited'), so the agent knows when this tool will fail. It never routes the agent toward or away from the sibling upsert_dns_record or delete_dns_record, so the alternatives half of the guidance is missing.

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