List recent events
unifi_list_eventsLists recent UniFi controller events newest first for the last 24 hours by default, covering client connects and roams, device restarts, upgrades, and v2 system log alerts when classic events are empty.
Instructions
List recent controller events, newest first (default last 24 hours): client connects and roams, device restarts, upgrades and the like, with time, key, subsystem and message. Falls back to the v2 system log's device and client alerts where the classic event log is gone or empty. For other log classes (admin activity, threats, VPN...) use unifi_get_system_log; for unresolved problems use unifi_list_alarms.
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_list_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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; the classic event log rounds fractions up to whole hours) | |
| limit | No | Maximum items to return (default 100) | |
| fields | No | Only return these fields per item (dot paths, e.g. uplink.name) | |
| search | No | Case-insensitive substring match on names, MACs, IPs and similar |