Skip to main content
Glama

get_tcp_performance

Analyze TCP performance from PCAP files to diagnose network quality using RTT, retransmissions, window size, and lost segment statistics.

Instructions

Analyse TCP performance: RTT, retransmissions, window size, and lost segments.

Extracts tcp.analysis.ack_rtt, tcp.window_size, tcp.analysis.retransmission, and tcp.analysis.lost_segment fields to compute aggregate statistics useful for diagnosing network quality.

Args: file_path: Path to the PCAP file display_filter: Optional display filter (e.g. "ip.addr == 10.0.0.1")

Returns: Performance summary with RTT stats, retransmission count, and window info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
display_filterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It explains that the tool extracts specific tcp.analysis.* fields and computes aggregate statistics, which is useful. However, it does not disclose potential side effects (though likely none), error conditions, or prerequisites such as file accessibility. The return type is mentioned at a high level, but more behavioral detail could be added.

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 well-structured and concise. The opening sentence states the purpose, the second explains the underlying fields, and the Args/Returns sections provide essential input/output details without redundancy. Every sentence adds value.

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?

The tool is simple (2 params, 1 required) and has an output schema, so the description need not detail return structure. It covers input meaning, purpose, and usage context. However, it does not explicitly mention any constraints or caveats (e.g., PCAP must contain TCP traffic), which would make it more complete.

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

Parameters5/5

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

The schema has zero descriptions for the two parameters, but the description compensates fully. It explicitly defines file_path as 'Path to the PCAP file' and display_filter as an optional filter with a concrete example ('ip.addr == 10.0.0.1'). This adds significant meaning beyond the raw schema types.

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 a specific verb ('Analyse') and a specific resource ('TCP performance') with concrete metrics (RTT, retransmissions, window size, lost segments). This distinguishes it from sibling tools like get_packet_statistics or get_flow_matrix, which address different aspects of packet analysis.

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 gives clear context on when to use the tool: for diagnosing network quality via TCP performance analysis. It lists the relevant fields and the type of output (aggregate statistics). However, it does not explicitly state exclusions or alternatives, so it does not fully meet the highest bar.

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