Skip to main content
Glama

ghostlan_capture_inspect

Summarize saved .pcap captures by returning packet, byte, TCP, UDP, and ICMP counts plus tcpdump-decoded lines, with optional BPF filtering and a line limit.

Instructions

Summarize a saved .pcap file (packet/byte/TCP/UDP/ICMP counts + decoded lines via tcpdump -r)

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": {
      "pcap_path": "<pcap_path>"
    },
    "name": "ghostlan_capture_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax decoded packet lines to return (default 50)
filterNoOptional tcpdump BPF filter (e.g. 'udp port 7960')
pcap_pathYesPath to saved .pcap file

Output Schema

NameRequiredDescriptionDefault
tcpYes
udpYes
icmpYes
bytesYes
linesNo
packetsYes
pcap_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It usefully reveals the underlying mechanism ('via tcpdump -r'), which tells an agent the file is read locally and the decode is tcpdump-formatted, but it says nothing about failure modes for a missing/invalid file, file size limits, or permissions.

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?

A single compact sentence with the operation front-loaded and the output contents in a tight parenthetical. Dense but every clause carries information; no filler.

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?

An output schema exists, so return shape needn't be spelled out, and all three parameters are documented in the schema. For a simple read-only file summarizer the description covers purpose, inputs, and mechanism adequately; only error/edge-case behavior is absent.

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%, so the schema already explains pcap_path, filter, and limit. The description only adds the tcpdump framing, which helps the agent understand that 'filter' is a BPF expression, but no syntax or format guidance beyond that.

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 ('Summarize') and resource ('saved .pcap file'), and enumerates what the summary contains (packet/byte/TCP/UDP/ICMP counts plus decoded lines). The word 'saved' implicitly separates it from a live-capture sibling like ghostlan_capture, though no sibling is named.

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 rather than stated: the agent can infer this is for post-hoc analysis of an already-written .pcap rather than live capture. There is no explicit when-to-use, when-not-to-use, or named alternative.

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