Skip to main content
Glama

wireshark_get_file_info

Extract metadata from network capture files to analyze file type, packet count, duration, and size for traffic analysis.

Instructions

Get detailed metadata about a capture file. Uses capinfos to show: file type, packet count, duration, size, etc.

Returns: Detailed file metadata or JSON error

Errors: FileNotFound: pcap_file does not exist ToolNotFound: capinfos not available

Example: wireshark_get_file_info("traffic.pcap")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pcap_fileYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool uses capinfos, returns detailed metadata or JSON error, and lists specific error conditions (FileNotFound, ToolNotFound). However, it does not mention performance aspects like execution time or whether it's read-only/destructive, though 'Get' suggests read-only.

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 and front-loaded with the core purpose, followed by implementation details, returns, errors, and an example. Each sentence adds value without redundancy, and the total length is appropriate for the tool's complexity.

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 1 parameter with 0% schema coverage and an output schema (which handles return values), the description is mostly complete. It covers purpose, tool used, errors, and an example, but lacks details on permissions, rate limits, or behavioral nuances like file size limits, which could be relevant for a metadata tool.

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

Parameters4/5

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

Schema description coverage is 0%, but the description compensates by explaining that 'pcap_file' is a capture file and provides an example ('traffic.pcap'). It adds meaning beyond the schema's minimal title ('Pcap File'), though it could specify file format requirements or path handling.

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 specific action ('Get detailed metadata about a capture file') and resource ('capture file'), distinguishing it from siblings like wireshark_capture (capturing) or wireshark_get_packet_details (packet-level info). It specifies the tool used (capinfos) and the type of metadata returned (file type, packet count, duration, size).

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 for obtaining file-level metadata rather than packet-level analysis (e.g., vs. wireshark_get_packet_list), but does not explicitly state when to use this tool versus alternatives like wireshark_stats_protocol_hierarchy or provide exclusions. It mentions errors for missing files or tools, giving some context.

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/bx33661/Wireshark-MCP'

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