Skip to main content
Glama

Look up DNS records

lookup_dns
Read-onlyIdempotent

Query A, AAAA, MX, TXT, CNAME, and CAA for a public hostname over DNS-over-HTTPS, and parse SPF and DMARC. Private names are refused. The resolver is Cloudflare or Google.

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": {
      "name": "<name>"
    },
    "name": "lookup_dns"
  }
}

Input Schema

NameRequiredDescriptionDefault
mailNoAlso fetch the _dmarc TXT record and parse SPF.
nameYesPublic hostname, such as example.com. Private names are refused.
typesNo
resolverNocloudflare

Output Schema

NameRequiredDescriptionDefault
spfYes
nameYes
dmarcYes
queriesYes
recordsYes
resolverYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world, so the safety profile is covered; the description adds genuinely new behavior: the DoH transport, the two allowed resolvers, the refusal of private names, and the extra SPF/DMARC parsing that goes beyond the raw record query. Rate limits, timeouts and failure/error behavior are not disclosed.

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?

Three tight sentences, each carrying distinct information: capability, precondition, backend. The core capability is front-loaded and nothing is padding.

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?

An output schema exists, so return values need no explanation, and the description covers transport, record scope, resolver choice, extra parsing and the input restriction. For a four-parameter lookup tool that is nearly complete; only error/timeout behavior is left implicit.

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 50%, with 'types' and 'resolver' undocumented in the schema; the description compensates by enumerating the record types queried and naming the two resolver backends. It also explains that SPF/DMARC parsing accompanies the mail-related behavior. Format/syntax detail for 'name' is still only in the schema, but the gaps are largely filled.

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?

Names a specific verb ('Query') plus the exact resource set (A, AAAA, MX, TXT, CNAME, CAA) and the transport (DNS-over-HTTPS), and adds the SPF/DMARC parsing as a distinguishing capability. No sibling in the supplied list covers DNS, so an agent can pick this out unambiguously.

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?

The precondition 'Private names are refused' tells the agent when the call will fail, which is real guidance. However there is no stated when-to-use framing, no mention of when to skip it (e.g. internal/private zone checks belong elsewhere) beyond that refusal, and no alternatives offered.

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.