Skip to main content
Glama

Save DNS Records

save_dns_records
DestructiveIdempotent

Upsert DNS records for a domain in bulk with force overwrite, replacing all existing records with the same name and type while preserving other combinations.

Instructions

Save (upsert) DNS records for a domain using PUT with force overwrite. WARNING: All existing records matching the same name AND type combination will be completely replaced — not merged. Other record name/type combinations are preserved. Use this for bulk operations with mixed record types. For single records, prefer the type-specific tools (create_a_record, create_cname_record, etc.). Always confirm with the user before calling this tool and use list_dns_records first to check existing records.

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": "<domain>",
      "records": "<records>"
    },
    "name": "save_dns_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain name
recordsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes further by scoping the destruction precisely: records matching the same name AND type are completely replaced, not merged, while other name/type combinations survive. That blast-radius detail is exactly what an agent needs before invoking a destructive upsert and is not derivable from the annotations alone.

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?

The overwrite warning is front-loaded in caps immediately after the verb, followed by sibling routing and then prerequisites. Every sentence carries distinct operational information; nothing is redundant with the title or schema.

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 bulk tool with a complex nested record schema and no output schema, the description covers safety, ordering, and alternatives well. It does not say what the call returns or how partial failures across a mixed-type batch are reported, which is the main remaining gap.

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 50% and the nested record object is heavily self-documenting, so the schema does most of the work. The description only adds that the records array is intended for mixed record types in bulk, without explaining required fields, TTL defaults, or type-dependent value selection beyond what the schema states.

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?

The description names a specific verb and mechanism ("Save (upsert) DNS records for a domain using PUT with force overwrite") and explicitly distinguishes the tool from its type-specific siblings (create_a_record, create_cname_record). An agent can identify the resource, the write mode, and the differing tool class without reading any 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?

It gives explicit routing rules: use this for bulk operations with mixed record types, prefer type-specific create_* tools for single records, call list_dns_records first to check existing state, and always confirm with the user before calling. That covers when to use, when not to, prerequisites, and a required confirmation step.

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