Skip to main content
Glama

export_to_json

Convert PCAP packet captures into structured JSON data for network analysis. Supports display filters, packet limits, and TLS decryption via key log files.

Instructions

Export packets from a PCAP file as JSON for structured analysis.

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

Returns: JSON-formatted packet data (decrypted if keylog_file is provided)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
keylog_fileNo
max_packetsNo
display_filterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It explains that TLS traffic can be decrypted when keylog_file is provided and that the output is JSON-formatted packet data. Minor gaps remain (e.g., file size implications, error cases), but the main behavior is well covered.

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-organized with Args and Returns sections. No filler or redundant wording; each sentence contributes useful information about the tool's purpose or parameters.

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?

All parameters and the return value are described, and an output schema exists. The description lacks details like display filter syntax or error handling, but for a straightforward export tool with an output schema, it is adequately complete.

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?

Schema coverage is 0%, yet the Args section provides meaningful explanations for all four parameters: file_path, display_filter, max_packets, and keylog_file. This fully compensates for the missing schema descriptions and adds clear usage semantics.

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 'Export packets from a PCAP file as JSON' with a specific verb, resource, and output format. This differentiates it from siblings like extract_packet_details or extract_fields, which focus on different extraction or formatting behaviors.

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 phrase 'for structured analysis' implies when to use the tool, but there is no explicit guidance on alternatives or when not to use it. Sibling tools exist, but no comparative direction is provided.

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