Skip to main content
Glama

Dns Reverse Dns

dns_reverse_dns
Read-onlyIdempotent

Find the hostname for an IP address via reverse DNS lookup. Returns the PTR record if available.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ip": "8.8.8.8"
    },
    "name": "dns_reverse_dns"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 address to reverse-lookup (e.g., "8.8.8.8")

Output Schema

NameRequiredDescriptionDefault
ipYesIPv4 address that was queried
statusYesDNS status code name (NOERROR, NXDOMAIN, etc.)
hostnamesYesList of hostnames found via PTR record
reverse_nameYesReverse DNS name in .in-addr.arpa format
primary_hostnameYesPrimary hostname from first PTR record or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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 adds one genuinely useful behavioral detail — the lookup may return nothing ('if available') — but says nothing about latency, multiple PTR records, or failure modes beyond that.

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?

Two short sentences, zero waste, with the action front-loaded and the return behavior appended. Nothing could be cut without losing information.

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

Completeness4/5

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

For a one-parameter read-only lookup with an output schema and full annotation coverage, the description is nearly sufficient. The only gap is that it does not say what happens for IPs with no PTR record beyond 'if available', which an agent may need to know for error handling.

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% with a single documented ip parameter including an example, so the schema does the heavy lifting. The description only restates that the input is an IP address, adding no format constraints or edge-case semantics 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: find the hostname for an IP via reverse DNS, returning the PTR record. That immediately distinguishes it from a forward-lookup tool, though it never names the sibling dns_dns_lookup to make the contrast explicit.

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?

Usage is implied by the framing ('for an IP address'): call it when you have an IP and want a hostname. There is no explicit when-not guidance, no mention of the forward-lookup alternative, and no note about what to do when no PTR record exists.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.