Skip to main content
Glama

Replace DNS record

update_dns_record
DestructiveIdempotent

Replace a DNS record with new values. Not for records marked managed. Ask the user first.

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": {
      "domain_id": "<domain_id>",
      "record_id": "<record_id>",
      "type": "<type>",
      "content": "<content>"
    },
    "name": "update_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNo1 = automatic, otherwise 60–86400 seconds.
nameNo@ for the domain itself, or a sub-name like www.
typeYesRecord type. Pick it from what you want: A for an IPv4 address, AAAA for IPv6, CNAME to point at another name, MX for mail, TXT for verification, NS to delegate.
contentYesWhat the record points to, and it depends on the type: an IPv4 address for A (93.184.216.34), an IPv6 address for AAAA, a hostname for CNAME and NS (www.example.com), priority and host for MX (10 mail.example.com), and free text for TXT.
proxiedNoThrough Cloudflare's proxy (A, AAAA, CNAME only).
priorityNoRequired for MX.
domain_idYesThe website's id — from list_sites.
record_idYesThe DNS record's id — from list_dns_records (a string, not a number).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower. The description adds two genuinely new facts beyond them — the managed-record restriction and the requirement to confirm with the user — but it does not say whether fields omitted from the call are cleared, which is the key behavioral question for a replace operation.

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?

Three short sentences, no waste, and the core action is front-loaded. The trailing "Ask the user first" is terse enough to be slightly ambiguous about ordering, but it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter destructive mutation with no output schema, the description covers the action, one exclusion, and a confirmation step. It leaves out whether unspecified fields are reset to defaults, what the caller gets back, and any propagation or permission caveats — meaningful gaps for a replace tool.

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%, with per-parameter explanations including type-dependent content formats and enum meanings, so the schema does the heavy lifting. The description adds no parameter-level meaning at all, making the baseline 3 correct.

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?

"Replace a DNS record with new values" gives a specific verb (replace) and resource (DNS record), and the title reinforces it. It is distinguishable from create_dns_record and delete_dns_record, though it never explicitly contrasts itself with a create-vs-overwrite distinction.

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 states one clear exclusion ("Not for records marked managed") and a prerequisite ("Ask the user first"), which is real when-not guidance. It stops short of naming what to use instead for managed records or how to choose between replacing and creating, so it is not fully explicit routing.

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