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 €9/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.2/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent and openWorld, and the description adds genuinely useful context: private domains are rejected, execution happens server-side, files are deleted immediately and nothing is stored, plus concrete quota and auth mechanics. No return format beyond TTLs is described, which is the only notable gap.

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?

Front-loaded with capability first, then constraints, then pricing; very dense with no filler. The pricing URLs and €/$ figures add length but are actionable for billing decisions, so they earn their place.

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 three-parameter read-only lookup with no output schema, the description covers capability, scope limits, privacy behavior, auth options and rate limits. An agent has everything needed to decide to call it and to make the call correctly.

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 coverage is 100% with enums on resolver and recordType, so the schema already carries the parameter semantics. The description restates the same record types and resolver names and adds only the 'public domain' constraint and 'TTL' output hint, so baseline 3 applies.

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?

States a specific verb and resource ('Query public DNS records') and immediately enumerates the supported record types and resolvers, so an agent knows exactly what the tool returns and cannot confuse it with unrelated siblings like 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit exclusion ('Rejects private/local domains') and clear operational context (free 5 calls/day per IP, paid via API key or x402), but offers no guidance on when to pick a specific resolver beyond listing the options, leaving that choice to inference.

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