Skip to main content
Glama

DNS lookup

dnsLookup
Read-onlyIdempotent

Resolve a domain's current DNS records live: A, AAAA, MX, NS, CNAME, SOA, TXT and SPF. With ipAddress it also does a reverse (PTR) lookup of an IP address. Use this to see where a domain points now: its IP addresses, mail servers, name servers, or TXT records such as SPF, DKIM and DMARC. For how records changed over time use dnsHistory. To go the other way and find domains that use a given IP, mail server or name server use reverseDnsLookup. For many domains or IPs at once use bulkDnsLookup. type=all (the default) returns every record type in one call; pass one type or a short list such as mx,txt to keep the result small. cnameDepth follows CNAME chains, for example for www hosts behind a CDN. Returns the records grouped by type. Records reached through a CNAME carry the target's name: a DKIM key published through one, as Microsoft 365 does, comes back under the provider's host name. A domain's SPF policy (v=spf1) is listed as an SPF entry (type 99), apart from its other TXT records, even though domains publish it as an ordinary TXT record; the label isn't a sign of the obsolete SPF record type. A domain with no records of the requested type returns an empty list or a "no data found" message. Behavior: read-only. Makes one request to the WhoisFreaks API for your WhoisFreaks account (identified by the WHOISFREAKS_API_KEY environment variable or, on the hosted server, by the API key sent with the request or the account connected with OAuth) and uses that account's API credits; nothing is created or changed. If the call fails, the result is a short message instead of data, for example: the API key was refused (invalid, or plan or credits used up) with what to do next, domain extension not supported (HTTP 403), no data found (HTTP 404), or rate limit reached (HTTP 429).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dnsLookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoRecord types to return: 'all' (the default), one type such as MX, or a comma-separated list such as a,mx,ns. Supported: A, AAAA, MX, NS, CNAME, SOA, TXT, SPF.
formatNoResponse format. Default: json
ipAddressNoIP address for a reverse (PTR) lookup. Example: 8.8.8.8. Pass it instead of, or together with, domainName.
cnameDepthNoHow many CNAME hops to follow before collecting records, 0 to 4. Default: 0
domainNameNoDomain name to query DNS records for. Example: google.com. Optional when ipAddress is given.
relativeRecordsNotrue (the default): include the records of CNAME targets. false: only the records on the queried name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the read-only/idempotent annotations: it discloses that one API request is made, that account credits are consumed, and that auth comes from WHOISFREAKS_API_KEY, a request header, or OAuth. Failure modes are spelled out per HTTP status (403 unsupported extension, 404 no data, 429 rate limit). It misses only that errors replace data in the same field shape, which it partly covers.

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-loads purpose, then routing, then parameter advice, then return/edge-case semantics. Dense and mostly earns its length, though the API-key/credits parenthetical and the verbose status-code list could be tightened.

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?

With no output schema, the description supplies the return shape ('grouped by type'), the CNAME-target naming caveat, the SPF-as-type-99 quirk, and the empty-result behavior. Nothing an agent needs to interpret results correctly is missing.

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 already 100%, so the baseline is 3, but the description adds real meaning: 'all' is the default and returns every type, cnameDepth exists to follow CDN chains for www hosts, and ipAddress triggers a PTR lookup. This is behavior-level parameter guidance rather than a restatement of the schema.

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?

Opens with a specific verb and resource ('Resolve a domain's current DNS records live') and enumerates the record types covered. It also states the reverse-PTR variant, so an agent can tell exactly what the tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly routes the agent to siblings: dnsHistory for change over time, reverseDnsLookup for IP-to-domains, bulkDnsLookup for many inputs at once. It also gives practical advice ('pass one type or a short list ... to keep the result small') that changes how the call is made.

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