Skip to main content
Glama

Get DNS zone

get_dns_zone
Read-onlyIdempotent

Retrieve a DNS zone and its records, including record IDs for updates and the ownership TXT value for verification when available.

Instructions

Get a DNS zone and desired records, including their record IDs for update_dns_record. A waiting zone's ownership TXT value is available in zone.verification.record.value when recoverable; read it before considering reissue_dns_zone_verification. 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": "get_dns_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
zone_idYesDNS zone ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and non-open-world, so the safety profile is covered. The description still adds real behavioral context: the API-key permission required, and the conditional fact that zone.verification.record.value holds the ownership TXT only when the zone is 'waiting' and recoverable.

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 dense sentences with no filler, and the core purpose is front-loaded before the workflow and permission caveats. Slightly heavy on chained clauses in the middle sentence, but every clause carries information.

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?

With no output schema, the description takes on return-shape duty and does so partially: it names records, record IDs, and the nested verification path. Auth requirements and the reissue relationship are covered, leaving only minor gaps such as error or empty-zone behavior.

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?

There is a single zone_id parameter with 100% schema description coverage, so the schema already carries the semantics. The description adds no format, range, or lookup guidance beyond what the schema provides, 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?

States a specific verb and resource and goes beyond a bare restatement by naming what the response contains (desired records and their record IDs). It implicitly distinguishes itself from list_dns_zones (enumerate vs fetch one by ID), but does not explicitly differentiate from sibling getters like get_dns_zone_diagnostics or get_dns_zone_history.

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 rather than stated: fetch a zone by ID, then read the ownership TXT before considering reissue_dns_zone_verification. The auth prerequisite (dns:read with an API key) is spelled out, but there is no explicit when-to-use-this-vs-an-alternative routing (e.g., use list_dns_zones when the ID is unknown).

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