Skip to main content
Glama

analyze_dns

Analyze DNS traffic from PCAP files to uncover query patterns, response times, and error rates. Extract per-query details and summarize top queried domains and NXDOMAIN failures.

Instructions

Deep analysis of DNS traffic: query patterns, response times, error rates.

Extracts per-query details including query name, response code, and response time, then summarises top queried domains and NXDOMAIN failures.

Args: file_path: Path to the PCAP file display_filter: Optional extra display filter (applied in addition to dns) top_n: Number of top domains to show in summary (default: 30)

Returns: DNS summary with top queried domains, NXDOMAIN list, and response stats

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNo
file_pathYes
display_filterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains that the tool extracts per-query details and summarizes top domains and NXDOMAIN failures, and it mentions reading a PCAP file. However, it does not disclose the read-only nature explicitly, nor does it mention potential side effects, performance considerations, or handling of large files. This is adequate but not deeply transparent.

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 concise and well-organized: a purpose sentence, a process sentence, and a structured Args/Returns breakdown. Every sentence adds value with no redundancy, making it efficient and easy to parse.

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?

The description covers the tool's inputs and outputs clearly, including the return summary content and purpose of each argument. It lacks edge-case details or caveats about large files or performance, but given the presence of an output schema and the straightforward nature of the analysis, it is reasonably complete. Minor gaps in behavioral context prevent a perfect score.

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 has 0% description coverage, providing only types and defaults. The description's Args section fully compensates by clearly explaining each parameter: file_path as the PCAP path, display_filter as an optional extra filter, and top_n as the number of top domains. This adds significant semantic meaning 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?

The description clearly states the tool performs deep DNS traffic analysis with specific outputs like query patterns, response times, and error rates. It identifies the resource (DNS traffic) and the action (analyze), though it does not explicitly distinguish itself from sibling tools like extract_packet_details or analyze_pcap_file. The verb+resource is specific enough for strong purpose clarity.

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?

The description implies the tool is used for analyzing DNS traffic from a PCAP file, providing some context for when to use it. However, it does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions. This is adequate but minimal guidance.

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/ouonet/tshark-mcp'

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