unifi-api
Execute any UniFi Network API operation by specifying the OpenAPI path. Automatically detect HTTP method and substitute path parameters.
Instructions
Execute any UniFi Network API operation. Specify the spec path (e.g. /v1/sites/{siteId}/devices) and optional path params, query params, or body. HTTP method is auto-detected. Use unifi-api-schema to discover available paths.
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-api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body | |
| path | Yes | OpenAPI spec path (e.g. /v1/sites/{siteId}/devices) | |
| method | No | HTTP method. Auto-detected if omitted. | |
| pathParams | No | Path parameters to substitute (e.g. { siteId: 'abc' }) | |
| queryParams | No | Query string parameters |