Skip to main content
Glama
netdiag-mcp-server

netdiag-mcp-server

by LuizH12380

DNS lookup

dns_lookup
Read-onlyIdempotent

Resolve a hostname to IPv4/IPv6 addresses to verify whether it exists and where it points; IP addresses are returned unchanged.

Instructions

Resolve a hostname to its IPv4/IPv6 addresses using the server's DNS resolver. Use it to check whether a name exists and where it points; an IP address is returned unchanged. Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1.

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

Input Schema

NameRequiredDescriptionDefault
hostYesHostname (e.g. 'example.com') or IPv4/IPv6 address (e.g. '8.8.8.8'). No URLs, ports, paths or spaces.

Output Schema

NameRequiredDescriptionDefault
hostYesNormalized host that was resolved.
addressesYesResolved IPv4/IPv6 addresses, resolver order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive), the description discloses a real behavioral rule: non-public address targets are refused by default with an operator-controlled override. It also explains that an IP input is returned unchanged, so an agent knows the call is a safe no-op in that case.

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 sentences, front-loaded with the core action, followed by intent and then the safety constraint. Every sentence carries distinct information; nothing is padding or restatement of the title.

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?

For a single-parameter tool with a full output schema and complete annotations, the description covers purpose, input flexibility, and the one non-obvious policy constraint. Nothing an agent needs in order to decide to call it or to interpret a refusal is missing.

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 the baseline is 3; the description earns extra credit by clarifying that the single 'host' parameter accepts either a hostname or a literal IPv4/IPv6 address and that literal IPs pass through unchanged. It adds semantic meaning rather than repeating the schema's format restrictions.

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 names a specific verb and resource ('Resolve a hostname to its IPv4/IPv6 addresses') and the mechanism ('using the server's DNS resolver'), then adds the intent ('check whether a name exists and where it points'). That framing separates it naturally from reachability tools like ping and http_check without needing to name them.

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?

It states a clear usage context ('use it to check whether a name exists and where it points') and an important target-level constraint (private/loopback/link-local destinations are refused unless NETDIAG_ALLOW_PRIVATE=1). It does not explicitly contrast with the sibling tools or say when not to use it, which keeps it short of a 5.

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