unifi_gen_getispmetrics
unifi_gen_getispmetricsRetrieve ISP metrics from UniFi Site Manager using 5-minute or 1-hour intervals and a preset or custom time range to analyze provider performance.
Instructions
Get ISP Metrics - generated from developer.ui.com/site-manager/v1.0.0/getispmetrics
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": {
"type": "<type>"
},
"name": "unifi_gen_getispmetrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Specifies whether metrics are returned using `5m` or `1h` intervals | |
| duration | No | Specifies the time range of metrics to retrieve, starting from when the request is made. Supports `24h` for 5-minute metrics, and `7d` or `30d` for 1-hour metrics. This parameter **cannot** be used with `beginTimestamp` or `endTimestamp`. | |
| endTimestamp | No | The latest timestamp to retrieve data up to (RFC3339 format) | |
| beginTimestamp | No | The earliest timestamp to retrieve data from (RFC3339 format) |