Skip to main content
Glama

tshark_read_pcap

Read and analyze a remote pcap file, extracting packets in JSON format with optional filter and field selection.

Instructions

Read and analyze a pcap file from the remote Kali machine. Returns packets in JSON format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesPath to the pcap file on the remote host
countNoMaximum number of packets to return (default: 100, max: 1000)
fieldsNoSpecific fields to extract (e.g., ['ip.src', 'ip.dst', 'tcp.port'])
filterNoDisplay filter to apply (Wireshark syntax, e.g., 'http', 'tcp.port == 443')
Behavior2/5

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

With no annotations, the description fully bears the responsibility for disclosing behavioral traits. It only states 'read and analyze' without clarifying if the tool is read-only, what happens on error, or any side effects (e.g., resource usage). The phrase 'analyze' is vague and does not specify any transformations or processing beyond extraction.

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?

The description is very concise: two sentences that immediately convey the core action and output. There is no fluff or unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 4 parameters and no output schema, the description is too brief. It does not explain what 'analyze' entails, how the JSON output is structured, or any limitations (e.g., file size). For a complex tool like pcap analysis, more detail is needed for adequate completeness.

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?

The input schema has 100% description coverage, so the baseline is 3. The description does not add any parameter semantics beyond what the schema already provides. For example, it doesn't mention that 'file' is required or that 'count' has a default and maximum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (read and analyze a pcap file), the context (remote Kali machine), and the output format (JSON). It effectively distinguishes from sibling tools like tshark_capture (which captures live traffic) and tshark_filter (which filters already captured data).

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?

No usage guidelines are provided. The description does not mention when to use this tool versus alternatives, when not to use it, or any prerequisites. For instance, it doesn't note that the pcap file must exist or that tshark should be installed on the remote host.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/schwarztim/sec-wireshark-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server