Skip to main content
Glama

query_dns

Resolve standard DNS record types for a domain through Cloudflare DNS-over-HTTPS and get authoritative answers, TTL values, and resolution latency.

Instructions

Performs live DNS resolution queries using Cloudflare DNS-over-HTTPS (DoH 1.1.1.1). Resolves standard DNS Resource Record types (A, AAAA, CNAME, MX, TXT, NS, SOA, CAA) and returns authoritative answers, TTL values, and resolution latency.

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": "query_dns"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe target domain name or hostname to query via DNS-over-HTTPS.
recordTypeNoThe DNS Resource Record type to query. Defaults to 'A'.A

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / domain / description
      Previous value: -"The domain name to query (e.g. wolrdpulse.app)"New value: +"The target domain name or hostname to query via DNS-over-HTTPS."
    • addedInput schema / properties / domain / examples
      Added value: +[
      +  "wolrdpulse.app",
      +  "github.com",
      +  "vercel.com"
      +]
    • addedInput schema / properties / domain / minLength
      Added value: +3
    • addedInput schema / properties / domain / pattern
      Added value: +"^[a-zA-Z0-9.-]+$"
    • addedInput schema / properties / recordType / default
      Added value: +"A"
    • changedInput schema / properties / recordType / description
      Previous value: -"Record type: A, AAAA, CNAME, MX, TXT, NS. Defaults to 'A'."New value: +"The DNS Resource Record type to query. Defaults to 'A'."
    • addedInput schema / properties / recordType / enum
      Added value: +[
      +  "A",
      +  "AAAA",
      +  "CNAME",
      +  "MX",
      +  "TXT",
      +  "NS",
      +  "SOA",
      +  "CAA"
      +]
    • addedInput schema / properties / recordType / examples
      Added value: +[
      +  "A",
      +  "CNAME",
      +  "MX",
      +  "TXT"
      +]
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It helpfully discloses the upstream resolver, that queries are 'live' and return 'authoritative answers', and that latency is measured, but it is silent on error responses, rate limits, caching, and whether an API key is needed for a public DoH endpoint.

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?

Two sentences, front-loaded with the mechanism and then the return values; no wasted clauses. Minor redundancy in re-listing the record types that the schema enum already provides.

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 two-parameter read query with no output schema, the description covers the resolver used and the shape of the response, which is what an agent needs to call it. The remaining gap is differentiating it from the sibling 'inspect_dns', plus absent error semantics.

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 100% and the enum already enumerates the record types, so the description's list of RR types adds no meaning beyond the schema. Baseline 3 applies; nothing about domain formatting or the consequences of a non-matching record type is added.

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 ('Performs live DNS resolution queries') plus the mechanism (Cloudflare DNS-over-HTTPS at 1.1.1.1) and the returned artifacts (answers, TTL, latency). It does not, however, distinguish itself from the sibling 'inspect_dns', which an agent could easily confuse with it.

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 described behavior: query a domain for a given record type. There is no explicit when-to-use, no exclusion of nearby tools, and no note about prerequisites or failure cases (NXDOMAIN, rate limiting), leaving the agent to infer routing.

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