UniFi Drive: Request
unifi_drive_requestCall private UniFi Drive API endpoints directly to reach replacement paths when wrapped tools return 404. Send GET requests with paths like v2/storage for raw, unshaped responses; writes stay disabled by default.
Instructions
Escape hatch: call any private Drive API endpoint directly, relative to /proxy/drive/api. The path carries the API generation: v1/... answers wrapped in {err, type, data}, v2/... answers bare. This exists because the API is undocumented and Ubiquiti moves endpoints between Drive releases — when a wrapped tool starts returning 404, this reaches the replacement without waiting for a new version of this server. Responses are RAW and unshaped (v2/systems/log-definitions alone is 79 KB); prefer the wrapped tools, which summarize. Writes are DISABLED: only GET is permitted. Set UNIFI_DRIVE_ALLOW_WRITES=1 to allow mutations.
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": {
"path": "<path>"
},
"name": "unifi_drive_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body, for POST, PUT and PATCH. | |
| path | Yes | Path relative to /proxy/drive/api, without a leading slash, including the API generation, e.g. "v2/storage", "v1/systems/info", "v1/snapshots/shared/Public". Not an absolute URL. | |
| query | No | Query parameters as a flat string map, e.g. {"interval":"900","start":"1795800000"}. Drive times are Unix SECONDS, not milliseconds. | |
| method | No | HTTP method. | GET |