Skip to main content
Glama

get_traffic_analysis

Read-only

Analyze UniFi site traffic patterns over a configurable lookback window, identifying top talkers, application breakdown, bandwidth trends, and unusual activity to troubleshoot network usage.

Instructions

Analyze site traffic patterns over a configurable time window.

Read-only operation: it reports top talkers, application breakdown (DPI), bandwidth trends, and unusual activity for the lookback period. Use get_traffic_summary for a quick volume-only snapshot, get_dpi_stats for the app breakdown without the time series, or get_client_traffic for one client.

Args: hours: Lookback window in hours from now (default 24). site: Site to query. Defaults to "default". device: Optional console/device name to target a specific UniFi console; omit to use the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoSite to query. Defaults to "default".default
hoursNoLookback window in hours from now (default 24).
deviceNoOptional console/device name to target a specific UniFi console; omit to use the default.
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already provide readOnlyHint=true, and the description reinforces this with 'Read-only operation.' It also adds useful behavioral context by enumerating exactly what kind of analysis is performed: top talkers, DPI, bandwidth trends, and unusual activity. This is more than the annotation alone conveys.

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 well-structured: purpose sentence, read-only clarification, sibling routing, then a clean Args list. Every sentence contributes useful information, and the key scoping detail ('configurable time window') is front-loaded.

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

Completeness5/5

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

For a read-only analytics tool with no output schema, the description provides sufficient context: what it analyzes, what it reports, how parameters control scope, and which sibling tools cover adjacent use cases. An agent can confidently select and invoke this tool without additional documentation.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema fully documents hours, site, and device. The description's Args section largely repeats the schema's text and defaults without adding extra semantic meaning. This meets the baseline but does not go beyond it.

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 begins with a specific verb and resource: 'Analyze site traffic patterns over a configurable time window.' It lists concrete outputs (top talkers, DPI breakdown, bandwidth trends, unusual activity), making the tool's purpose unmistakable. It also distinguishes itself from sibling tools by naming them explicitly.

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

Usage Guidelines5/5

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

The description gives clear routing guidance: use get_traffic_summary for a volume-only snapshot, get_dpi_stats for app breakdown without time series, and get_client_traffic for single-client traffic. This tells an agent exactly when to choose this tool versus the main alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/mikeholownych/unifi-mcp'

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