Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Network traffic analyze

network_traffic_analyze
Read-onlyIdempotent

Analyze a PCAP to summarize protocol hierarchy, top talkers/conversations, packet-size distribution, and whether traffic matches flood behavior; read-only and never sends traffic.

Instructions

Analyze a PCAP: uses tshark/tcpdump statistics when available, otherwise a pure-JS libpcap parser. Produces protocol hierarchy, top talkers/conversations, packet-size distribution and a defensive interpretation of whether the traffic is consistent with flood behaviour. Reads only; never sends traffic.

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": "network_traffic_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoNumber of top entries (default 10).
pcapPathYesWorkspace-relative path to a PCAP file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered; the description reinforces it with "Reads only; never sends traffic." It adds genuine context beyond annotations by disclosing the implementation path — tshark/tcpdump statistics when available, otherwise a pure-JS libpcap parser — which signals that output fidelity and speed may vary by environment, plus that the flood verdict is framed as a "defensive interpretation" rather than a hard determination.

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?

Two dense sentences, front-loaded with the core action and then the output contract and safety note. Nothing is redundant or padded; every clause carries information the agent did not already have from schema or annotations.

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 the right thing by naming the produced artifacts and the flood interpretation, and it covers safety and implementation. However, it omits sibling differentiation among the many pcap_* tools and says nothing about behavior on large captures or performance characteristics of the fallback pure-JS parser — relevant given an external-binary-optional design. Adequate but with clear gaps for a tool sitting in a crowded PCAP-tool family.

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% (pcapPath documented as workspace-relative, topN with default 10 and 1-50 range), so the schema already carries parameter meaning. The description adds only that the input is a PCAP file, which is already implied by the tool name and schema; no extra syntax, path constraints, or topN behavior is introduced. Baseline 3 applies.

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?

States a specific verb+resource ("Analyze a PCAP") and goes further by enumerating the analysis artifacts produced: protocol hierarchy, top talkers/conversations, packet-size distribution, and a flood-consistency interpretation. This is clearly distinct in scope from narrower siblings like pcap_dns_analyze or pcap_tls_metadata_analyze, but the description never names or routes against those siblings, leaving the agent to infer which PCAP tool to pick.

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?

Usage is only implied: the listed outputs (protocol hierarchy, top talkers, size distribution) suggest this is the general-purpose overview tool rather than a protocol-specific one, but there is no explicit "use this when / use X instead" guidance. No prerequisites (e.g., PCAP must exist in workspace, size limits) or exclusions are stated.

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