Skip to main content
Glama

slice_pcap

Idempotent

Filter or slice PCAP files by packet number range, time window, or remove duplicates using editcap.

Instructions

Slice or filter a PCAP file using editcap.

Args: filepath: Path to input PCAP file output_file: Output file path (.pcap or .pcapng) start_packet: First packet number to keep (1-based) end_packet: Last packet number to keep start_time: Keep packets after this time (editcap -A format) end_time: Keep packets before this time (editcap -B format) remove_duplicates: Remove duplicate packets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filepathYes
output_fileYes
start_packetNo
end_packetNo
start_timeNo
end_timeNo
remove_duplicatesNo
Behavior3/5

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

Annotations already indicate idempotent and non-destructive behavior. The description adds minimal extra context (e.g., 'uses editcap'), but does not elaborate on file creation or requirements for permissions. Given annotations, the description is adequate but provides little beyond the structured data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the main purpose and then lists parameters concisely. Each parameter description is brief but informative. No superfluous text, though the parameter list is necessary given the number of parameters.

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 description explains all parameters but does not mention what the tool returns or how to handle errors. Since there is no output schema, some explanation of output format or side effects would improve completeness. Still, the parameter descriptions are thorough.

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 by listing each parameter and its meaning in the Args section (e.g., start_packet: first packet number to keep, start_time: keep packets after this time). This adds significant value beyond the bare schema.

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 'Slice or filter a PCAP file using editcap,' specifying the action (slice/filter) and resource (PCAP file). It effectively distinguishes the tool from siblings like merge_pcap_files or convert_pcap_format.

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?

The description provides no guidance on when to use this tool versus alternatives such as merge_pcap_files, analyze_pcap_file, or convert_pcap_format. There is no when-to-use or when-not-to-use information.

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/cortexc0de/netmcp'

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