Skip to main content
Glama

Sweep a zone's nameservers

sweep_domain
Read-onlyIdempotent

Sweep a zone's nameservers: the same names and types asked at a sample of its authoritative addresses, reporting disagreements, lame or silent servers, serial and TTL differences, the CAA in effect, and each _acme-challenge TXT or CNAME. Asked with RD=0 over TCP from the isitdns edge or a probe, named on each answer. Every question not asked is listed with why, and an answer past 22,000 bytes is trimmed with counts, the whole sweep at its api: URL. names are labels under domain (@ for domain itself), 16 at most, and types 8 at most.

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>"
    },
    "name": "sweep_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesNoLabels under domain, "@" for domain itself. Default: @, www, _dmarc, _acme-challenge
typesNoRecord types. Default: SOA, NS, A, AAAA, MX, TXT, CAA
domainYesThe zone or name to sweep, e.g. example.com. Send as name or domain; a URL is read as its host.

Output Schema

NameRequiredDescriptionDefault
apiYesThe /api GET that asks it again, as a new reading
zoneNoThe zone swept
resultsNoOne row per name and type: flags, answers, not asked
serversNoEach nameserver address: name, address, family
holdbackNoThe sample: addresses known, addresses asked, and each address not asked with why
notAskedNoNot asked: name, kind, reason, ref
receiptsNoOne per DNS read: what, of whom, from where, when, rcode, flags, EDE, ms, answer
notPrintedNoCounts trimmed to fit, all at api
certReadinessNoPer name: the CAA set that governs it and its _acme-challenge TXT and CNAME

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / notAsked
      Added value: +{
      +  "description": "Not asked: name, kind, reason, ref",
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / domain / description
      Previous value: -"The zone or name to sweep, e.g. example.com. Also as \"name\"; a URL is read as its host."New value: +"The zone or name to sweep, e.g. example.com. Send as name or domain; a URL is read as its host."
  3. Changed2 schema fields changed
    • changedInput schema / properties / names / description
      Previous value: -"Relative labels to ask, \"@\" for the apex. Default: @, www, _dmarc, _acme-challenge"New value: +"Labels under domain, \"@\" for domain itself. Default: @, www, _dmarc, _acme-challenge"
    • changedOutput schema / properties / certReadiness / description
      Previous value: -"Per name: CAA and ACME readiness"New value: +"Per name: the CAA set that governs it and its _acme-challenge TXT and CNAME"
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "api": {
      +      "description": "The /api GET that asks it again, as a new reading",
      +      "type": "string"
      +    },
      +    "certReadiness": {
      +      "description": "Per name: CAA and ACME readiness",
      +      "type": "array"
      +    },
      +    "holdback": {
      +      "description": "The sample: addresses known, addresses asked, and each address not asked with why",
      +      "type": "object"
      +    },
      +    "notPrinted": {
      +      "description": "Counts trimmed to fit, all at api",
      +      "type": "object"
      +    },
      +    "receipts": {
      +      "description": "One per DNS read: what, of whom, from where, when, rcode, flags, EDE, ms, answer",
      +      "type": "array"
      +    },
      +    "results": {
      +      "description": "One row per name and type: flags, answers, not asked",
      +      "type": "array"
      +    },
      +    "servers": {
      +      "description": "Each nameserver address: name, address, family",
      +      "type": "array"
      +    },
      +    "zone": {
      +      "description": "The zone swept",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "api"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / domain / description
      Previous value: -"The zone or name to sweep, e.g. example.com. Also accepted as \"name\"; a URL is reduced to its host."New value: +"The zone or name to sweep, e.g. example.com. Also as \"name\"; a URL is read as its host."
  6. Changed1 schema field changed
    • changedInput schema / properties / domain / description
      Previous value: -"The zone or name to sweep, e.g. example.com"New value: +"The zone or name to sweep, e.g. example.com. Also accepted as \"name\"; a URL is reduced to its host."
  7. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, openWorld), the description discloses real behavioral traits: queries are sent with RD=0 over TCP from defined vantage points, unasked questions are listed with reasons, responses over 22,000 bytes are trimmed with counts, and the full sweep is reachable at an api: URL. It also states hard caps of 16 names and 8 types, which governs how an agent should chunk requests. What it does not state is rate limits or how many addresses constitute the sample.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and there is little pure filler, but the middle sentences are densely packed technical shorthand ("Asked with RD=0 over TCP from the isitdns edge or a probe, named on each answer") that takes effort to parse. The final sentence tacks parameter constraints onto what is otherwise an output description.

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 an output schema present, return values need not be explained, and annotations cover the safety profile; the description nonetheless adds the vantage points, truncation rule, and result caps that an agent needs to call this correctly. The gap is guidance on when to prefer dig or check_domain for simpler queries.

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%, so the baseline is 3, and the description earns an extra point by adding constraints the schema lacks — the maximum of 16 names and 8 types, plus the note that names are labels under domain with @ meaning the domain itself. It still does not clarify whether 'types' accepts arbitrary RR type strings or a fixed set.

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 opens with a specific verb and resource ("Sweep a zone's nameservers") and enumerates the concrete outputs: cross-server disagreements, lame/silent servers, serial and TTL deltas, CAA in effect, and _acme-challenge records. That is a clear picture of a multi-authoritative-server consistency sweep versus a single lookup. It never names a sibling (dig, check_domain) to draw the boundary explicitly, which keeps it from 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 by the enumerated outputs — you would reach for this when you need to know whether all authoritative servers agree. There is no explicit when-to-use or when-not statement, and no named alternative for single-server queries.

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