Skip to main content
Glama

Import DNS zone

import_dns_zone
Destructive

Import BIND-style forward DNS records into a native zone, either upserting them or replacing existing non-system desired-state records, to update public DNS answers after publication.

Instructions

Import BIND-style forward DNS records into a native zone. These records can change public DNS answers after publication. Set replace=true to replace non-system desired-state records; false upserts imported records. PTR/reverse DNS, SOA, DNSSEC wire records, apex NS, and LUA are skipped or rejected by the API. 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>",
      "zonefile": "<zonefile>"
    },
    "name": "import_dns_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
replaceNoIf true, delete existing non-system desired-state records before importing. Defaults to false.
zone_idYesDNS zone ID
zonefileYesBIND-style zone file contents to import

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety bar is met. On top of that the description adds real value: a warning that records can change public DNS answers after publication, the exact semantics of replace=true (delete non-system desired-state records), the set of record types that are skipped or rejected, and the required dns:write scope. It stops short of describing error/atomicity behavior, so 4 rather than 5.

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 tight sentences, purpose front-loaded, followed by the side-effect warning, the flag semantics, the rejected-type scope, and the auth requirement. No sentence restates the name or title, and none is padding.

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, non-idempotent import with no output schema, the description covers effect, replace semantics, rejected record types and auth scope, which is nearly everything an agent needs before calling. It omits any indication of return/error behavior or atomicity, a minor gap given there is no output schema to lean on.

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 the baseline is 3; the schema already fully documents replace and gives constraints on zone_id/zonefile. The description goes further by contrasting the two modes ('replace=true to replace non-system desired-state records; false upserts imported records'), which clarifies the consequence of the flag beyond its schema text and places it clearly above baseline.

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?

The description gives a specific verb and resource: 'Import BIND-style forward DNS records into a native zone', which is clearly distinct from create_dns_zone/export_dns_zone by naming the bulk import of a zone file. It does not explicitly reference any sibling alternative, so an agent still has to infer the boundary against upsert_dns_record or apply_dns_template, keeping it at a strong 4 rather than 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the input format ('BIND-style forward DNS records') and the replace=false upsert behavior, but no alternatives are named and no explicit 'when to use this instead of apply_dns_template/upsert_dns_record' guidance is given. The skip/reject list is a useful scope constraint but is not usage routing.

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