Skip to main content
Glama

save_capture_to_file

Capture network traffic on a specified interface and save it to a PCAP file for later analysis. Supports duration, packet count, and optional BPF filter.

Instructions

Capture network traffic and save to a PCAP file.

Useful when you want to keep a capture for later analysis.

Args: interface: Network interface name output_file: Path where to save the PCAP file duration: Max capture duration in seconds packet_count: Max packets to capture bpf_filter: BPF capture filter (optional)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
interfaceYes
output_fileYes
durationNo
packet_countNo
bpf_filterNo
Behavior2/5

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

Annotations provide readOnlyHint=false and destructiveHint=false, but the description adds little beyond 'capture network traffic'. It fails to disclose that capturing requires network interface access, may require root privileges, or that it writes to the filesystem. Major behavioral gaps remain.

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

Conciseness3/5

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

The description is short but somewhat redundant with the schema. The parameter list adds value but could be more concise by omitting obvious repetitions. Adequate but not tightly written.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 5 parameters, no output schema, and basic annotations, the description lacks information about return values, error conditions (e.g., permission denied, file exists), and execution context (e.g., blocks for duration). Significant gaps for a network capture tool that writes files.

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

Parameters2/5

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

Schema coverage is 0%, so description must compensate but only provides one-line descriptions that essentially repeat parameter names (e.g., 'Network interface name'). It does not explain formatting for 'bpf_filter', or that 'duration' and 'packet_count' have defaults. Insufficient for a 5-parameter tool.

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 verb 'capture', resource 'network traffic', and output 'save to a PCAP file'. It distinguishes itself from siblings like 'capture_live_packets' by explicitly mentioning persistent storage.

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 says 'Useful when you want to keep a capture for later analysis,' which implies when to use but does not provide explicit when-not-to-use or alternatives. Guidance is implied rather than explicit.

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