Skip to main content
Glama

filter_and_save

Filter packets from a PCAP file using a display filter and save matching packets to a new PCAP file.

Instructions

Filter packets from a PCAP file and save the result to a new PCAP file.

Args: input_file: Path to the source PCAP file output_file: Path where the filtered PCAP will be saved display_filter: Display filter to select packets (e.g. "tcp.port == 80")

Returns: Status message with packet count written

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_fileYes
output_fileYes
display_filterYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the burden of behavioral disclosure. It explains the input, output, and return value, but does not mention whether existing output files are overwritten, any permissions required, or potential side effects on the source file. The return status ('packet count written') is a useful behavioral detail.

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 efficiently structured with a one-sentence summary, an Args list, and a Returns note. Every line adds value and there is no filler or repetition of schema information.

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?

For a simple three-parameter tool with an output schema, the description covers the main input/output contract and return value. Minor gaps remain, such as overwrite behavior or error conditions, but the core functionality is well-specified for an agent to select and invoke the 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?

With schema description coverage at 0%, the description must add meaning to the bare parameter names. It does so with concise Arg definitions: 'Path to the source PCAP file', 'Path where the filtered PCAP will be saved', and a clear example for display_filter. This exceeds the baseline for parameters with no schema descriptions.

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 action ('Filter packets from a PCAP file') and the outcome ('save the result to a new PCAP file'). This specific verb+resource structure distinguishes it from sibling tools like get_packet_statistics or export_to_json, which have different outputs.

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 when to use the tool (when you need a filtered PCAP file) but provides no explicit comparisons or exclusions relative to sibling tools. There is no 'use this instead of X' guidance, though the clear purpose makes the context evident.

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