Skip to main content
Glama

dns_lookup

Resolve a domain's DNS records to verify destination IPs and email settings; returns A/AAAA via stdlib and MX/TXT/NS/CNAME/SOA when dig or nslookup is available.

Instructions

ドメインの DNS レコードを引く。A/AAAA は stdlib(getaddrinfo) で確実に、MX/TXT/NS/CNAME/SOA 等は dig または nslookup があればそれ経由で引く(無ければ A/AAAA のみ返し、その旨を明記)。到達先 IP やメール設定の確認に。

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

Input Schema

NameRequiredDescriptionDefault
nameYesドメイン名(例 lit.link)。
recordNoA/AAAA/MX/TXT/NS/CNAME/SOA/ANY。省略時 A。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden and does deliver one valuable trait: MX/TXT/NS/CNAME/SOA require dig or nslookup, and if those binaries are absent only A/AAAA is returned and this is flagged in the output. It says nothing about timeouts, resolver failures, NXDOMAIN handling, caching, or rate limits, so an agent cannot predict error behavior.

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?

Two sentences, front-loaded with the core action, with the fallback caveat and use case in supporting position. The parenthetical about falling back to A/AAAA is long but earns its place because it changes how results should be interpreted; nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description must cover return values, yet it never describes the response shape (record list, field names, ordering, or how the fallback notice is surfaced). The fallback case is covered, but an agent still cannot anticipate the structure of a successful MX/TXT response.

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%, so both parameters are already documented, establishing a baseline of 3. The description does add per-type reliability meaning (A/AAAA via getaddrinfo is guaranteed; other types are conditional on external binaries), which helps an agent interpret a sparse MX/TXT result, but it adds no syntax, formatting, or validation detail beyond the schema.

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 ("ドメインの DNS レコードを引く") and enumerates the record types it handles, which is enough to separate it from whois_lookup, ssl_cert_info, and tcp_check. It never names a sibling or explicitly contrasts with one, so differentiation is inferred from the resource rather than stated.

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?

The closing clause "到達先 IP やメール設定の確認に" gives a concrete use context (verify destination IPs, check mail configuration), which implies A/AAAA lookups for IPs and MX/TXT for mail. No when-not conditions or named alternatives are given, so the agent must infer that WHOIS or certificate checks belong elsewhere.

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