Skip to main content
Glama

Resolve DNS through the execution host

dns_lookup
Read-onlyIdempotent

Resolve A/AAAA records using the host OS resolver to match VPN DNS behavior, or query CNAME, MX, TXT, and NS records through configured DNS servers.

Instructions

Resolve A/AAAA records with the execution host's operating system resolver (matching its VPN DNS behavior), or query CNAME, MX, TXT and NS records through configured DNS servers.

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
typeNoA
hostnameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's job is to add non-obvious behavior — and it does: the resolution path, and therefore the answers returned, differ by record type, with A/AAAA matching the host's VPN DNS behavior. It leaves out error semantics (NXDOMAIN, timeouts) and caching, which would matter to an agent interpreting an empty result.

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?

A single sentence, front-loaded with the common A/AAAA case and followed by the alternative record types. Every clause carries information; nothing is redundant with the name or schema.

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 two-parameter read-only lookup with full annotation coverage and no output schema, the definition supplies what an agent needs to call it correctly, including the important split in resolution behavior. It could be slightly more complete by noting failure/empty-result behavior, which is the one thing an agent cannot infer from structured fields here.

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 description coverage is 0%, so the description must carry the load. It meaningfully explains `type` by tying each enum value to a resolution mechanism, which is exactly the semantics the bare enum cannot convey; `hostname` is self-evident given the string constraints, though the default of A is not restated.

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 pair (resolve/query) and resource (DNS records) and splits the behavior by record type: A/AAAA via the execution host's OS resolver, CNAME/MX/TXT/NS via configured DNS servers. That is far more specific than the title alone, and no sibling (fetch_page, http_request, network_status, web_search) does DNS record resolution, so the agent can place it immediately.

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 gives usable context for choosing the record type: A/AAAA reflects the host's resolver and VPN DNS view, while the other types go to configured servers. It does not state exclusions or prerequisites (e.g., what to do if the resolver fails, or whether to prefer this over network_status for connectivity checks), so it stops short of explicit when-not guidance.

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