Skip to main content
Glama

HTTPfy network & DNS tools

DNS record lookup

dns_lookup
Read-onlyIdempotent

Look up DNS records of one type (A, AAAA, CNAME, MX, NS, SOA, TXT, SRV, CAA, PTR; ANY returns all common types) for a domain using public resolvers. For PTR, an IP address can be given directly.

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

Input Schema

NameRequiredDescriptionDefault
domainYesDomain (Enter domain)
record_typeNoSelect Record Type. Default: AA

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / record_type / enum
      Previous value: -[
      -  "A",
      -  "AAAA",
      -  "CNAME",
      -  "MX",
      -  "NS",
      -  "SOA",
      -  "TXT",
      -  "SRV"
      -]New value: +[
      +  "A",
      +  "AAAA",
      +  "CNAME",
      +  "MX",
      +  "NS",
      +  "SOA",
      +  "TXT",
      +  "SRV",
      +  "CAA",
      +  "PTR",
      +  "ANY"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description still adds real context beyond them: lookups go through 'public resolvers' (results may diverge from authoritative or cached answers) and 'ANY returns all common types', honestly flagging that ANY is not exhaustive.

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

Conciseness5/5

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

Two tightly written sentences with no filler; the record-type list and the ANY caveat come first, followed by the PTR special case, which is exactly the order an agent needs.

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-only lookup with full annotations and no output schema or nested objects, the description covers the essentials. Minor gaps remain around failure semantics (NXDOMAIN vs. empty answer) and any resolver or rate constraints, but these are peripheral to selecting and calling the tool.

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%, so the baseline is 3, and the description largely restates the enum already present in the schema. It does add meaning for two cases: ANY is defined as 'all common types' rather than literally all, and the domain parameter is clarified to accept an IP address when record_type is PTR.

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 ('Look up DNS records') and enumerates every supported record type plus the ANY shortcut, so the scope is unambiguous. It does not, however, distinguish itself from narrower siblings such as mx_lookup or caa_check, leaving the agent to infer that this is the generic case.

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 only implied by the record-type enumeration; the one explicit hint is 'For PTR, an IP address can be given directly', which is genuinely useful. There is no statement about when to prefer this over the specialized siblings (mx_lookup, spf_lookup, caa_check) or when to reach for dns_propagation_check instead.

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.