Skip to main content
Glama

DNS 解析查询

dns_lookup
Read-onlyIdempotent

通过 DNS-over-HTTPS 查询域名解析记录(A/AAAA/CNAME/MX/TXT/NS),返回解析结果与 TTL。用于排查域名解析、验证 DNS 配置、查看 MX/TXT 记录。Example: {"domain":"example.com","type":"MX"}

Input Schema

NameRequiredDescriptionDefault
typeNo记录类型 A/AAAA/CNAME/MX/TXT/NS,默认 AA
domainYes域名,如 example.com、www.baidu.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds value by disclosing the DoH transport mechanism and that results include TTL, which the annotations do not convey. It does not mention rate limits or caching behavior, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability and record types are front-loaded in the first clause, and the use cases follow immediately. The trailing example duplicates the schema's own examples array, which is mild redundancy but not harmful.

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?

With only two parameters, full schema coverage, rich annotations and no output schema, the description supplies what is needed: what is queried, over what protocol, and what comes back (records plus TTL). Nothing critical is missing for correct invocation.

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%: the enum of record types, the default of A, and the domain format are all documented in the schema itself. The description only restates the record type list and includes a sample call, adding no new semantic detail beyond the structured fields.

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?

The description names a specific verb and resource ('查询域名解析记录') plus the transport ('通过 DNS-over-HTTPS') and the exact record types covered, so an agent knows precisely what it does. It does not need to distinguish itself from siblings, since none of the listed tools overlap with DNS resolution, but it also never states that non-overlap explicitly.

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 concrete usage contexts: troubleshooting resolution failures, verifying DNS configuration, and inspecting MX/TXT records. There is no explicit when-not guidance or mention of an alternative tool, but the use cases are clear enough to route correctly.

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.