unifi_traffic_report
Retrieve traffic and client counts over time for a site, AP, client, or gateway, with selectable intervals and gateway metrics such as WAN latency, CPU, and memory.
Instructions
Traffic and client counts over time from the console's own reports, for the whole site, one AP (device), one client, or the gateway (with WAN latency, CPU, memory). Interval 5minutes, hourly or daily (default by range). At most 200 points: longer series are averaged per bucket, first and last kept. Bytes are per bucket of the chosen interval.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scope": "<scope>"
},
"name": "unifi_traffic_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site name, id or reference; optional while the console has a single site | |
| scope | Yes | What to report on; ap needs device, client needs client | |
| since | No | Start of the range: an ISO 8601 timestamp (2026-10-31T08:00:00Z) or a span back from now such as 90m, 24h, 7d or 2w | |
| until | No | End of the range (default now): an ISO 8601 timestamp (2026-10-31T08:00:00Z) or a span back from now such as 90m, 24h, 7d or 2w | |
| client | No | Client name, MAC, IP or id (scope client only) | |
| device | No | AP name, MAC, IP or id (scope ap; must be an access point), or the gateway (scope gateway; needed when the site has several) | |
| interval | No | Bucket size; default 5minutes up to 2 days, hourly up to 31 days, else daily |