Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

DNS traffic analysis

pcap_dns_analyze
Read-onlyIdempotent

Parses DNS over UDP/TCP in PCAP files, summarizes query counts, NXDOMAIN ratio, record types, and response sizes, and flags DNS-tunnelling or amplification signals.

Instructions

Parse DNS over UDP/TCP in pure JS: transaction ids, flags (QR/AA/RD/RA/rcode), question names and types, and answer A/AAAA records. Computes per-name query counts, NXDOMAIN ratio, query-type distribution, response-size distribution (a reflection/amplification indicator) and detects DNS-tunnelling signals (long or high-entropy labels, high query rates). Read-only, with defensive notes.

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": {
      "pcapPath": "<pcapPath>"
    },
    "name": "pcap_dns_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNo
pcapPathYesPath to the artifact, relative to the authorized workspace root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so 'Read-only' in the description adds nothing. The description does add analytic substance by listing the computed indicators (NXDOMAIN ratio, response-size distribution as a reflection/amplification indicator, tunnelling signals), though 'defensive notes' is left undefined and behavior on malformed/non-DNS packets is unstated.

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?

Two compact sentences, front-loaded with the parsing capabilities followed by the derived metrics. The nested parentheticals make the second sentence dense but every clause carries real information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does useful work by enumerating the returned metrics, so an agent knows roughly what comes back. But the undocumented topN parameter and the vague 'defensive notes' leave a real gap for a two-parameter tool.

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

Parameters2/5

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

topN is completely undocumented in both the schema and the description, leaving the agent to guess that it bounds the per-name/query-type lists and what its default is. Only pcapPath is described, and that description lives in the schema, not here.

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?

States a specific verb and resource ('Parse DNS over UDP/TCP') and enumerates exactly what it extracts: transaction ids, flags, question names/types, A/AAAA answers, plus the derived metrics. The DNS scope cleanly separates it from pcap_http_analyze, pcap_tls_metadata_analyze and pcap_flow_analyze without needing to name them.

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 purpose makes it evident when the tool applies (DNS traffic in a capture), but there is no explicit guidance on when to choose it over pcap_analyze or pcap_flow_analyze, nor any prerequisite or exclusion stated. Usage is implied by scope only.

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

Deploy Server

Other Tools