Skip to main content
Glama

analyze_pcap_file

Analyze packet captures with TShark, applying display filters and decrypting TLS traffic using key log files.

Instructions

Analyze a PCAP file using TShark.

Args: file_path: Path to the PCAP file display_filter: Optional display filter to apply keylog_file: Optional path to a TLS key log file (SSLKEYLOGFILE) for decrypting TLS/SSL traffic max_packets: Maximum number of packets to output (default 100)

Returns: Packet analysis output

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
keylog_fileNo
max_packetsNo
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 full burden for behavioral disclosure. It mentions using TShark, supporting TLS decryption via keylog file, and default max_packets, which is useful. However, it does not describe the output format, potential resource usage, or edge cases, leaving the tool's behavior partially opaque.

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 appropriately sized and structured: a one-sentence overview followed by a clear Args list and a Returns line. Every sentence provides necessary information with no waste or redundancy.

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?

The tool has 4 parameters and no annotations, and the description covers the basics but lacks guidance on when to use it among many siblings. The return value is only described as 'Packet analysis output,' which is vague, though an output schema exists. More context about output format and use cases would improve completeness.

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 has no parameter descriptions (0% coverage), but the description provides an 'Args' section that explains each parameter: file_path, display_filter, keylog_file, and max_packets, including the default value for max_packets and the purpose of keylog_file. This fully compensates for the lack of schema descriptions.

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 clearly states the tool analyzes a PCAP file using TShark, which is a specific verb and resource. However, it does not differentiate from sibling tools like extract_packet_details or get_packet_statistics, so it lacks explicit sibling differentiation.

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?

The description implies usage through its parameter explanations (optional display filter, TLS keylog decryption, packet limit), but it does not explicitly state when to use this tool versus alternatives like get_packet_statistics or extract_packet_details. Usage context is present but no exclusions or alternative recommendations are given.

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