get_client_history
Search UniFi controller history for clients by IP, MAC, or hostname. Retrieve past connection records within a configurable time window to troubleshoot and audit device activity.
Instructions
Search for clients in the controller history
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": {
"query": "<query>"
},
"name": "get_client_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Number of hours to look back (default: 8760/1 year) | |
| query | Yes | Search query (IP, MAC, or hostname) |