Skip to main content
Glama

get_traffic_timeseries

Compute per-interval packet and byte counts from PCAP files to reveal traffic bursts, sustained flows, and periodic patterns.

Instructions

Compute traffic volume over time — packets and bytes per interval.

Uses tshark's io,stat to bucket traffic into fixed-width time windows. Useful for identifying bursts, sustained flows, and periodic patterns.

Args: file_path: Path to the PCAP file interval_seconds: Bucket width in seconds (default: 1.0) display_filter: Optional display filter to restrict which packets are counted (e.g. "tcp", "ip.addr == 10.0.0.1")

Returns: Table of intervals with frame count and byte count per bucket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
display_filterNo
interval_secondsNo

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 burden. It discloses that the tool 'Uses tshark's io,stat to bucket traffic into fixed-width time windows,' which explains the underlying mechanism and output structure. It does not mention potential error conditions or file-modification behavior, but for a read-only analysis tool this is sufficient.

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 compact and front-loaded, with a clear purpose, mechanism, usage hint, and parameter list. Every sentence earns its place, and there is no redundant 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?

Given the tool's moderate complexity and the presence of an output schema, the description adequately covers the essential aspects: what it computes, how it works, and parameter meanings. It doesn't explain return format details, but the output schema presumably handles that.

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 coverage is 0%, so the description compensates by explaining all three parameters: file_path is 'Path to the PCAP file,' interval_seconds is 'Bucket width in seconds,' and display_filter is 'Optional display filter to restrict which packets are counted' with an example. This adds meaning beyond the raw schema definitions.

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 specifies the tool's function: 'Compute traffic volume over time — packets and bytes per interval.' It uses a specific verb ('Compute') and resource ('traffic volume over time'), and the time-series focus distinguishes it from siblings like get_packet_statistics and get_flow_matrix.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a clear use case: 'Useful for identifying bursts, sustained flows, and periodic patterns.' This implies when to choose this tool over others, though it doesn't explicitly state when not to use it or name alternative tools.

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