Skip to main content
Glama
NsLookup-io

nslookup.io MCP Server

by NsLookup-io

dns_lookup

Query DNS records (A, AAAA, NS, MX, TXT, CNAME, SOA) for any domain using specified DNS servers to verify configurations and troubleshoot connectivity.

Instructions

Look up all common DNS records (A, AAAA, NS, MX, TXT, CNAME, SOA) for a domain. Returns results from a specified DNS server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to look up (e.g. example.com)
serverNoDNS server to query. Default: cloudflare. Use 'authoritative' for the domain's own nameservers.

Implementation Reference

  • The handler logic for dns_lookup, which calls the /v1/records API.
      async ({ domain, server: dnsServer }) => {
        try {
          const params: Record<string, string> = { domain };
          if (dnsServer) params.server = dnsServer;
    
          const result = await apiGet("/v1/records", params);
          return { content: [{ type: "text", text: formatJson(result) }] };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Error: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • src/tools.ts:84-95 (registration)
    Registration of the dns_lookup tool with its schema definition using Zod.
    server.tool(
      "dns_lookup",
      "Look up all common DNS records (A, AAAA, NS, MX, TXT, CNAME, SOA) for a domain. Returns results from a specified DNS server.",
      {
        domain: z.string().describe("Domain name to look up (e.g. example.com)"),
        server: z
          .enum(DNS_SERVERS)
          .optional()
          .describe(
            "DNS server to query. Default: cloudflare. Use 'authoritative' for the domain's own nameservers."
          ),
      },
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the tool's behavior by specifying the types of DNS records returned and the server querying aspect. However, it lacks details on rate limits, error handling, or response format, which are important for a network tool. The description does not contradict any annotations, as none exist.

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?

The description is two sentences that are front-loaded with the core purpose and efficiently detail the parameters and server behavior. Every word contributes to understanding the tool's functionality without redundancy or unnecessary elaboration.

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?

Given no annotations and no output schema, the description adequately covers the tool's purpose and parameters. However, as a network query tool, it lacks details on output structure, potential errors, or performance considerations, which would be helpful for an agent. It meets minimum viability but has gaps in completeness.

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 description coverage is 100%, so the baseline is 3. The description adds value by clarifying the scope of DNS records (listing A, AAAA, etc.) and explaining the 'server' parameter's default and the 'authoritative' option, which enhances understanding beyond the schema's enum list. This elevates the score to 4.

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?

The description clearly states the action ('look up'), the resource ('DNS records'), and specifies the scope ('all common DNS records: A, AAAA, NS, MX, TXT, CNAME, SOA'). It distinguishes itself from siblings like dns_propagation or dns_record by emphasizing comprehensive record retrieval rather than specific checks or single-record operations.

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 description implies usage for DNS queries with server options, but it does not explicitly state when to use this tool versus alternatives like dns_record or dns_propagation. It mentions a default server and the 'authoritative' option, which provides some context, but lacks clear guidance on tool selection among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NsLookup-io/nslookup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server