Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Per-flow summary

flow_summarize
Read-onlyIdempotent

Summarizes PCAP traffic into per-flow tables covering 5-tuple, timing, duration, packets, bytes, average pps, and observed flags, and lists aggregate top flows for read-only analysis.

Instructions

Produce a per-flow summary table (5-tuple, start/end, duration, packets, bytes, average pps and flags seen) and the aggregate top flows. Read-only. A CSV export is not required.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'Read-only' is redundant. The description does add value by disclosing the output columns and that top flows are aggregated, but it says nothing about limits on how many top flows are returned, performance on large captures, or ordering.

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

Conciseness3/5

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

The opening sentence is dense but well front-loaded with the output specification. The trailing 'Read-only. A CSV export is not required.' adds a redundant annotation restatement and an ambiguous clause that consumes space without informing the caller.

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 only two parameters and no output schema, listing the produced columns is genuinely helpful and covers most of the return-value burden. However, the unexplained minBytes parameter and the lack of any routing guidance relative to pcap_flow_analyze leave real gaps for a tool this simple.

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 50%: pcapPath is documented in the schema, but minBytes has no description anywhere. The description never mentions the byte threshold, so an agent gets no help understanding whether minBytes filters flows or truncates output, and no compensation for the coverage 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?

The description names a specific verb and resource ('Produce a per-flow summary table') and enumerates the exact columns produced (5-tuple, start/end, duration, packets, bytes, average pps, flags) plus the aggregate top flows. It is clear what the tool returns, though it does not explicitly distinguish itself from the sibling pcap_flow_analyze.

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?

There is no statement of when to use this tool versus alternatives such as pcap_flow_analyze, nor any prerequisites or exclusions. The sentence 'A CSV export is not required' is ambiguous — it could mean no export is produced or that export is optional — and does not function as usage guidance.

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