Skip to main content
Glama

DNS lookup over HTTPS

lw_dns_lookup
Read-onlyIdempotent

Look up DNS records over DNS-over-HTTPS and optionally compare Cloudflare and Google answers. Shows RCODE, DNSSEC, CNAME chains, and TTLs to spot propagation delays and caching differences.

Instructions

Look up any DNS record type for a name through DNS-over-HTTPS (the configured resolver, Cloudflare by default). Set compare=true to ask Cloudflare and Google side by side and see whether they agree, which helps spot propagation delays and caching. Returns the RCODE (NOERROR, NXDOMAIN, SERVFAIL), the DNSSEC validated (AD) flag, any CNAME chain, and each answer with its TTL. DoH resolvers are recursive, so this shows what the internet sees, not a specific authoritative nameserver. Domain names are sent to the public RDAP service and DNS-over-HTTPS resolvers (Cloudflare by default, Google for comparisons). No Liquid Web credentials are used.

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

Input Schema

NameRequiredDescriptionDefault
nameYesName to query, e.g. example.com, _dmarc.example.com or selector1._domainkey.example.com.
typeNoRecord type (default A).
dnssecNoRequest DNSSEC data (sets the DO bit).
compareNoQuery Cloudflare and Google and report differences.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description still earns credit by disclosing data egress (domain names go to public RDAP and DoH resolvers) and that no Liquid Web credentials are used — the kind of context annotations cannot express. The RDAP mention looks like boilerplate for a pure DNS lookup and slightly muddies the accuracy of that disclosure.

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 the core action and mechanism, then the compare option, then return shape, then disclosures — a logical order with no filler sentences. The final egress/privacy sentence is long and carries an irrelevant RDAP reference, costing a bit of tightness.

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?

Despite an output schema covering return values, the description still sketches what comes back (RCODE vocabulary, AD flag, CNAME chain, TTLs), and it adds the resolver-perspective and data-egress context an agent needs before calling. No prerequisites, credential requirements, or scope assumptions are 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 100%, so baseline is 3, but the description adds genuine meaning to compare (query Cloudflare and Google side by side and diff the answers, framed around propagation and caching) beyond the schema's terse 'report differences'. It also implicitly explains the dnssec flag's payoff by noting the returned AD flag, though it never states the default type of A.

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 (look up) and resource (any DNS record type for a name) plus the mechanism (DNS-over-HTTPS, Cloudflare resolver by default). The clause about recursive DoH resolvers showing 'what the internet sees, not a specific authoritative nameserver' sharpens the scope so an agent can distinguish it from authoritative or provider-specific DNS checks in the sibling set.

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 use case for the compare flag (spotting propagation delays and caching disagreements) and clarifies the resolver perspective, which is real when-to-use guidance. It stops short of exclusions — notably it never says when to prefer the reverse-DNS sibling even though PTR is in its own type enum, leaving that overlap unresolved.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools