Skip to main content
Glama

500Toolbox

DNS Lookup

dns-lookup
Read-onlyIdempotent

Queries public DNS for a hostname and returns every record of the requested type. Use it to verify a domain's mail routing before sending, confirm a DNS change has propagated, or find which nameservers a domain is on. Costs 1 credit per call.

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": {
      "hostname": "<hostname>"
    },
    "name": "dns-lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostnameYesDomain to resolve, without a scheme. Example: example.com
recordTypeNoDNS record type to query. Defaults to A.A

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered by structured data. The only behavioral addition is the cost model ("Costs 1 credit per call"), which is genuinely useful; nothing is said about failure behavior on nonexistent domains or record-format details.

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 short sentences: capability first, use cases second, cost last. No filler and nothing buried.

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 2-parameter read-only lookup with full schema coverage, the description supplies purpose, use cases and cost. With no output schema, a brief note on response shape or behavior for NXDOMAIN would fully close the gap.

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%, including a default and a documented enum for recordType, so the schema carries the parameter burden. The description only echoes "requested type" without adding syntax or semantic detail 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?

"Queries public DNS for a hostname and returns every record of the requested type" is a specific verb+resource+return statement, and "public DNS" plus the record-type enum naturally separates it from ip-lookup/reverse-ip. It never names a sibling or explicitly rules out the IP/reverse-DNS tools, so it stops short of full differentiation.

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?

Three concrete scenarios are given (verify mail routing before sending, confirm a change propagated, find nameservers), which tells the agent exactly when this tool is the right call. There is no when-not guidance or mention of the alternative tools for IP-based questions.

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.

Resources