Skip to main content
Glama

Export DNS zone

export_dns_zone
Read-onlyIdempotent

Export a forward DNS zone's desired-state records as a BIND-style zone file for backup, migration, or external DNS management.

Instructions

Export a native forward DNS zone's desired-state records as a BIND-style zone file. System-managed SOA/apex NS/DNSSEC wire records and PTR/reverse DNS are not exported here. Requires dns:read 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>"
    },
    "name": "export_dns_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
zone_idYesDNS zone ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior. The description adds meaningful behavioral context beyond those annotations: it defines the export scope, lists record types that are not exported, and states the dns:read permission requirement when using an API key.

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?

Three short sentences are front-loaded with the core action, then exclusions, then auth requirement. Every sentence carries distinct useful information with no redundant restatement of the name or schema.

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

Completeness5/5

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

For a one-parameter read-only export tool with rich annotations and no output schema, the description supplies the essential purpose, scope exclusions, output format, and permission requirement. Nothing needed to call it correctly appears to be 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% and the single zone_id parameter is already documented as a DNS zone ID. The description adds useful semantic narrowing by clarifying that the zone must be a native forward DNS zone, which affects which zone_id values are valid.

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 states a specific verb and resource: exporting a native forward DNS zone's desired-state records as a BIND-style zone file. It also distinguishes the output from system-managed records and reverse DNS, so an agent can tell what this tool produces without inspecting sibling schemas.

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 gives clear usage context by specifying what is exported and explicitly excluding SOA/apex NS/DNSSEC wire records and PTR/reverse DNS. However, it does not name an alternative sibling such as get_dns_zone or import_dns_zone, so the when-to-use-vs-what guidance is not fully explicit.

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