Skip to main content
Glama

DNS Lookup API - query A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records

dns_lookup
Read-onlyIdempotent

Query public DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) with TTLs for any public domain name, choosing between server default, Cloudflare (1.1.1.1), Google (8.8.8.8) or Quad9 (9.9.9.9). Rejects private/local domains. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/dns-lookup.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "example.com",
      "resolver": "cloudflare",
      "recordType": "all"
    },
    "name": "dns_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesPublic domain name, e.g. example.com
resolverNoDNS resolver: default, cloudflare, google or quad9default
recordTypeNoRecord type: all, A, AAAA, MX, TXT, NS, CNAME, SOA or CAAall

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description goes further by disclosing the private/local domain rejection, TTLs in the results, data-handling behavior ("files are deleted right after the call, nothing stored"), and concrete rate limits (5 calls/day per IP) plus auth paths (X-API-Key, x402). It stops short of describing response shape or error behavior, so not a 5.

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?

Capability and scope are front-loaded in the first sentence, followed by constraints, then commercial terms. The pricing/x402 paragraph is dense with URLs and is the weakest-value segment, but it does carry auth information an agent may need, so it mostly earns its place.

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 should hint at returns; it mentions TTLs but not the record-value structure an agent would receive. Given only three simple parameters and full annotation coverage, the remaining gap is minor and the tool is callable from this definition alone.

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 both enums are documented, so the baseline is 3. The description adds real meaning by mapping resolver names to concrete addresses (Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9) and by reinforcing that `domain` must be a public domain, which the schema does not state.

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 opens with a specific verb and resource ("Query public DNS records") and enumerates the record types covered (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA), plus the scope (any public domain name). Nothing about the tool's identity is left ambiguous, and it is clearly distinct from the unrelated siblings such as robots_txt_checker or official_geocoding_api.

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?

It states an important eligibility constraint ("Rejects private/local domains") and describes the resolver choice, but gives no explicit when-to-use/when-not-to-use guidance or named alternative tools for related needs. Usage is implied by the domain/record-type framing rather than spelled out.

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