getDevices
List devices in an AdGuard DNS account with pagination, search, and filters by device or DNS server.
Instructions
Lists devices
Lists devices according to the specified parameters. Response is paginated, items are arranged in the newest-first order. For the initial request a default limit is applied if not specified. For the subsequent requests cursor must be provided (limit can be omitted). Filtering parameters, if specified for the initial request, must be provided on each page request as well.
Calls GET /oapi/v2/devices.
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": "getDevices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Pagination limit (may be overridden by cursor) (default: 10) | |
| cursor | No | Pagination cursor | |
| search | No | Search by device name or ID | |
| devices | No | Filter by devices | |
| dns_servers | No | Filter by DNS servers | |
| X_Account_Id | No | Optional ID of the account to operate on. Defaults to the authenticated user's own account. Use GET /oapi/v1/accounts to list available accounts. |