Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

PCAP flow statistics

pcap_flow_analyze
Read-onlyIdempotent

Parses packet captures and aggregates flow statistics—packet/byte totals, protocol distribution, top IPs/ports, conversations, TCP flags, packet sizes, rates, and unique IP counts for forensics.

Instructions

Parse a packet capture and aggregate high-level flow statistics: packet/byte totals, protocol distribution, top source/destination IPs and ports, top conversations, TCP flag distribution, average/median packet size, packets-per-second and unique-IP cardinality. If tshark is available its protocol-hierarchy summary is included. Read-only.

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_flow_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

B3.3/5.0
Behavior4/5

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

Annotations already cover readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the trailing 'Read-only' is mostly redundant. The description does add genuinely non-obvious behavior: the output varies by environment because the tshark protocol-hierarchy section only appears 'if tshark is available'. It says nothing about large-file handling or behavior on a malformed/unreadable capture, which keeps it short of 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?

Front-loaded with the verb and resource, then a single dense enumeration of return fields. The long statistics list is information-dense rather than padded, though the closing 'Read-only' sentence duplicates the annotation and earns little.

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?

No output schema exists, so the description carries the return-value burden and does so thoroughly, enumerating totals, protocol distribution, top talkers, conversations, TCP flags, size stats, PPS and IP cardinality. The main omission is any explanation of the topN parameter and of failure behavior on unreadable or non-existent captures.

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?

Schema coverage is only 50%: pcapPath is documented in the schema but topN has no description at all. The description mentions 'top source/destination IPs and ports, top conversations' and thus hints at a top-N notion, but never names the topN parameter, its cap of 100, or its default, so it fails to compensate for the schema gap.

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 ('Parse a packet capture and aggregate') plus the exact resource and enumerates the statistics produced, so the agent knows precisely what it gets back. It does not differentiate itself from close siblings such as pcap_analyze or flow_summarize, so the agent must still infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description contains no when-to-use or when-not-to-use guidance and never names an alternative. Nothing tells the agent whether to reach for this tool or for pcap_analyze/flow_summarize when a capture needs high-level statistics versus deep inspection.

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