Skip to main content
Glama

DNS Lookup

dns_lookup
Read-onlyIdempotent

Resolve DNS records (A, AAAA, MX, NS, SOA, SPF, TXT, CNAME) for a hostname or IP address in real time. Use to diagnose DNS configurations or perform reverse lookups.

Instructions

Retrieve real-time DNS records for a hostname or IP address. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types. At least one of host_name or ip_address must be provided. When ip_address is provided, record_types must be ['all'].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
record_typesYesList of DNS record types to retrieve. Allowed values: 'A', 'AAAA', 'MX', 'NS', 'SOA', 'SPF', 'TXT', 'CNAME', 'all'. Use ['all'] to retrieve every supported type in one request.
host_nameNoHostname or URL to look up DNS records for (e.g. 'example.com').
ip_addressNoIP address for PTR record lookup. When provided, record_types must be ['all']. Can be combined with host_name.
formatNoResponse format: 'json' (default) or 'xml'.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds behavioral context by specifying that the lookup is real-time and that ip_address input forces a specific record type restriction. No contradictions with annotations.

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 extremely concise—two short sentences. The first sentence defines the core action and supported types; the second covers usage constraints. No fluff, every word contributes meaning.

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 read-only, idempotent tool with no output schema, the description is fully adequate. It explains the input contract, supported record types, and conditional requirements. Nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already has 100% description coverage for all parameters. The description adds value by explaining the conditional logic between host_name and ip_address, and that ip_address forces record_types to ['all']. This goes beyond the schema's individual parameter descriptions.

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 retrieves real-time DNS records for a hostname or IP address. It enumerates supported record types (A, AAAA, MX, etc.) and explains the required condition when using ip_address. This distinguishes it well from sibling tools like dns_bulk_lookup (for multiple lookups) and dns_history (historical data).

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 description gives explicit constraints: at least one of host_name or ip_address must be provided, and ip_address forces record_types to ['all']. However, it does not explicitly compare to sibling tools or provide when-not-to-use scenarios, which would elevate it to a 5.

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/api-freaks/apifreaks-mcp'

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