Skip to main content
Glama

analyze_pcap

Analyzes a network packet capture from your own network to show per-device destinations, plaintext vs TLS traffic, an A–F safety grade, and optional HTML/PDF reports.

Instructions

Analyse a pcap of your own network.

Per-device destinations, plaintext vs TLS, an A-F grade, a one-line safety verdict, and offline known_issue_hints from banners already in the capture. A hint changes the grade only when the version match is exact and the severity is critical. When report_path is set, write the HTML report there. pdf=true also writes a PDF next to that HTML (same name, .pdf suffix) and needs the iotaudit[pdf] extra.

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": {
      "path": "<path>"
    },
    "name": "analyze_pcap"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdfNo
pathYes
device_ipsNo
report_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior: hints are matched offline from banners already in the capture, a hint only affects the grade when the version match is exact and severity is critical, and pdf=true introduces a dependency on the iotaudit[pdf] extra. It does not state that the analysis is read-only, whether the pcap must be local, expected runtime for large captures, or what happens if the extra is missing.

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 purpose, then outputs, then the grading rule, then the optional-output mechanics — a sensible order. Every sentence carries information, though the grading-rule sentence is a fairly deep detail for a tool description and could be trimmed.

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?

An output schema exists, so return values need not be explained, and the description already covers the flag semantics reasonably. The gaps are device_ips (undocumented in both schema and description) and the absence of any annotations, leaving the read-only/no-side-effects profile unstated for a tool that optionally writes files.

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 0%, so every parameter's meaning rests on titles alone. The description compensates for report_path (writes HTML there) and pdf (writes a sibling .pdf, requires the pdf extra), which is genuinely useful. However, device_ips is never mentioned and the format/expectations for path are left unstated, so half the parameters remain semantically thin.

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 and resource ('Analyse a pcap of your own network') and enumerates the concrete outputs: per-device destinations, plaintext vs TLS breakdown, an A-F grade, a safety verdict, and known_issue_hints. It implicitly distinguishes itself from the sibling 'capture' by operating on an existing pcap file rather than capturing traffic, but never names that alternative explicitly.

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 implied through the conditional clauses: set report_path to get an HTML report, set pdf=true to also get a PDF. There is no explicit statement of when to choose this over 'capture' or 'scan_device', nor any prerequisites about the capture needing to come from the user's own network beyond the phrase 'of your own network'.

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