Skip to main content
Glama
NsLookup-io

nslookup.io MCP Server

by NsLookup-io

webservers

Find IP addresses for domains by querying A and AAAA DNS records, returning both IPv4 and IPv6 addresses along with domain representations.

Instructions

Get the IP addresses (both IPv4 and IPv6) for a domain by looking up A and AAAA records. Also returns the punycode and unicode domain representations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to look up IP addresses for (e.g. example.com)

Implementation Reference

  • The handler function for the 'webservers' tool, which calls the apiPost function to fetch records.
    async ({ domain }) => {
      try {
        const result = await apiPost("/v1/records/webservers", { domain });
        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:189-194 (registration)
    Tool registration for 'webservers' in the MCP server, defining name, description, and input schema.
    server.tool(
      "webservers",
      "Get the IP addresses (both IPv4 and IPv6) for a domain by looking up A and AAAA records. Also returns the punycode and unicode domain representations.",
      {
        domain: z.string().describe("Domain name to look up IP addresses for (e.g. example.com)"),
      },
Behavior2/5

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

With no annotations, the description carries full burden but only states what the tool returns, not behavioral traits like rate limits, error handling, or network dependencies. It lacks details on performance, caching, or potential failures.

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 a single, well-structured sentence that efficiently conveys the tool's functionality without unnecessary words. It is front-loaded with the core purpose and includes all relevant details concisely.

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?

For a simple lookup tool with one parameter and no output schema, the description covers the basic purpose and return types adequately. However, it lacks behavioral context and sibling differentiation, leaving gaps in completeness.

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 schema fully documents the 'domain' parameter. The description adds no additional parameter semantics beyond what the schema provides, meeting the baseline for high coverage.

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 tool's purpose with specific verbs ('Get', 'look up') and resources ('IP addresses', 'A and AAAA records', 'punycode and unicode domain representations'). It distinguishes from siblings by focusing on IP address retrieval rather than broader DNS lookups or security checks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like 'dns_lookup' or 'dns_record' is provided. The description implies usage for IP address lookups but doesn't specify scenarios where this tool is preferred over 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