Get DPI statistics
unifi_get_dpi_statsRetrieve deep packet inspection traffic stats grouped by application or category for an entire site or specified client MACs, with the highest-volume traffic listed first.
Instructions
Get deep packet inspection (traffic identification) statistics, by application or by category, biggest first: site-wide, or per client when macs are given. Uses the v2 traffic endpoint (Network 9+), with names from the official API when an API key is configured, and falls back to the classic stat/sitedpi on older versions. Requires traffic identification to be enabled.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unifi_get_dpi_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Group by application or category (default category) | |
| macs | No | Client MACs to report on instead of the whole site | |
| site | No | Site name/ID as used in the API (e.g. 'default'). Defaults to the configured site. See unifi_list_sites. | |
| hours | No | Look back this many hours (default 24; not supported by the classic endpoint) | |
| limit | No | Top rows to return per list (default 25) |