Skip to main content
Glama

wireshark_editcap_trim

Trim a packet capture file to a specified start and end time. Retain only packets within the time window to reduce file size and focus analysis.

Instructions

Trim a capture file to a timestamp window using editcap.

Args: input_file: Source capture file output_file: Destination capture file start_time: Optional inclusive start time in editcap format stop_time: Optional exclusive stop time in editcap format

Returns: Success message or JSON error

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stop_timeNo
input_fileYes
start_timeNo
output_fileYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It states that start_time is inclusive and stop_time is exclusive, which is helpful. However, it does not mention that the tool creates a new file (does not modify the original), what happens with packets outside the window, or default behavior when times are omitted. Basic but lacks detail on side effects or required permissions.

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 extremely concise: a one-line purpose, a bulleted parameter list, and a return type. Every sentence adds value. No fluff, and the most important information is front-loaded.

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 that an output schema exists (although not shown), the description sufficiently covers the operation, parameters, and return type. It omits the exact time format, but for a tool with many siblings, it is adequately complete for selection and basic use.

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?

With 0% schema description coverage, the description compensates well. It explains each parameter: input_file, output_file, start_time (optional inclusive, editcap format), stop_time (optional exclusive). This adds meaning beyond the schema titles, though it does not specify the exact format for time strings.

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 tool's purpose: 'Trim a capture file to a timestamp window using editcap.' It specifies the verb (trim), resource (capture file), and method (editcap). Among sibling tools like wireshark_editcap_deduplicate and wireshark_editcap_split, this one is distinct for trimming to a time window.

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 guidance on when to use this tool versus alternatives. The description does not mention prerequisites, when not to use, or compare to other editcap or filter tools. The agent must infer usage from the purpose alone.

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