Skip to main content
Glama

merge_pcap_files

Merge multiple PCAP files in timestamp order and run a packet summary on the combined capture, enabling correlation of events across different capture points.

Instructions

Merge multiple PCAP files in timestamp order and analyse the combined result.

Uses mergecap (bundled with Wireshark) to combine captures from multiple network taps or capture sessions, then runs a packet summary on the merged file. Useful for correlating events across different capture points.

Args: input_files: Comma-separated paths to input PCAP files (minimum 2) output_file: Path where the merged PCAP will be written display_filter: Optional display filter for the post-merge summary

Returns: Merge status and packet summary of the combined capture

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_filesYes
output_fileYes
display_filterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explains the mergecap mechanism, timestamp ordering, and post-merge summary, and notes the return value. Missing are side effects like potential overwriting of the output file and error handling.

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 well-structured with a summary line, context, and dedicated Args/Returns sections. Every sentence contributes value, and there is no redundant or filler text.

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?

Given the tool's moderate complexity and the presence of an output schema, the description covers inputs, behavior, and return value sufficiently for selection and invocation. It could mention overwrite behavior or file format limitations, but these are minor gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema descriptions are absent, but the description fully compensates by explaining each parameter: comma-separated input paths with a minimum of 2, output file path purpose, and optional display filter. This adds clear meaning beyond the bare property names.

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 a specific action: merging multiple PCAP files in timestamp order and analyzing the result. It distinguishes itself from sibling tools by focusing on multi-file correlation and mentions the underlying mergecap utility.

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

Usage Guidelines4/5

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

It provides an explicit use case ('correlating events across different capture points') and explains when this tool is appropriate. However, it does not explicitly discuss alternatives or exclusions, so it stops short of full guidance.

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/ouonet/tshark-mcp'

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