Skip to main content
Glama

Edit DNS record

dns_edit_record
Destructive

Replace the value of one existing DNS record; its type, name and TTL stay. The old value is overwritten without undo, so note it from dns_list_records if it may need to come back. Take recordId from a dns_list_records call made just before: it is the record's position in the zone and shifts when records are added or removed. To change the type or name, delete the record and add a new one. Resolvers can keep the old value up to the record's TTL.

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": {
      "id": "<id>",
      "recordId": "<recordId>",
      "data": "<data>"
    },
    "name": "dns_edit_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe domain ID
dataYesNew value, in the format the record's type expects (an IP for A, a hostname for CNAME, the text for TXT)
recordIdYesrecordId from a dns_list_records call made just before this one

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?

Annotations only flag readOnlyHint=false and destructiveHint=true; the description goes well beyond that by naming what is lost ("old value is overwritten without undo"), how to recover it, and a propagation caveat ("Resolvers can keep the old value up to the record's TTL"). It also discloses the non-obvious fragility of recordId being a positional index that shifts — information an agent cannot get from the annotations.

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?

Four sentences, each carrying distinct and non-redundant information, ordered from what the tool does to the destructive consequence to the stale-ID hazard to resolver caching. No filler or restatement of the title.

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 destructive three-parameter mutation with no output schema, the description covers the irreversibility, the recovery path, the identifier hazard, and propagation lag. Minor gaps remain — it does not mention error behavior for a stale recordId or whether the call returns anything confirming the write — but nothing essential to calling it correctly is missing.

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; the description earns above that by explaining that recordId is the record's position in the zone and shifts when records are added or removed, which the schema's one-line description does not convey. The id and data parameters are left to the schema, which is reasonable given its pattern and format notes.

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 precise verb and scope: "Replace the value of one existing DNS record; its type, name and TTL stay." This immediately distinguishes it from dns_add_record (new record) and dns_delete_record (removal), and it also clarifies the boundary case of type/name changes.

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 prerequisite sequencing ("Take recordId from a dns_list_records call made just before") and an explicit exclusion with the alternative path ("To change the type or name, delete the record and add a new one"). It also tells the agent when to capture the old value first, which is actionable when-to-use guidance.

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.