Search devices
search_devicesSearch the authenticated company's device fleet. Devices are returned as "assets" - the business-level representation of an enrolled or tracked device, including its policy assignment, custom data, tags, hardware specifications and last known location. Results are paginated; use "page" and "size" to page through a large fleet. Optionally narrow the search by device status, assigned policy, "lastSyncBefore" (each device's "lastSync", the portal's "Last sync", before an instant: use it for devices not synced, not seen or offline since a date; "syncedAt" is only the last status report), "lastSeenBefore" (asset record updated before an instant; not proof of being offline) and/or "missing" (devices without an IMEI or a serial number; count_devices counts them). To find a device the user names, use "query" alone (name, serial number, IMEI, model or tag): it returns up to "size" best matches, each with its "pathName" and the field that matched, instead of a page of assets. When no managed device matches, the query also looks at devices removed from management, returned with status DELETED, as a wipe or removal leaves them. To list which devices match filters (for example every device not synced since a date), pass fields "names": a table of each device's name, pathName, policy and lastSync, up to 200 a page, with the exact total and the next page, instead of 25 full 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": "search_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page number. Defaults to 0. | |
| size | No | Number of devices per page. Defaults to 10, capped at 25; with fields "names" defaults to and is capped at 200. | |
| query | No | Free text to find a device by name, serial number, IMEI, model or tag. Use it alone, without status, policy, lastSyncBefore, lastSeenBefore, missing or page. | |
| fields | No | "names" lists the matching devices as a table of name, pathName, policy and lastSync, up to 200 a page, with the exact total and nextPage. Use it to say which devices match filters (status, policy, lastSyncBefore, lastSeenBefore, missing). Not with query. | |
| policy | No | Filter by the policy's path name (its unique short identifier, as returned by list_policies as "pathName" - not its human-readable display name). | |
| status | No | Filter by device status. ACTIVE = enrolled and functioning normally; INACTIVE = enrolled but disabled; SYNCHRONIZING = enrollment in progress; DELETED = removed from the fleet; REPROVISIONED = wiped and re-enrolled; EXTERNAL = tracked as an asset without MDM enrollment. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| missing | No | Only devices that have none of these identifiers: "imei" (no IMEI: a Wi-Fi-only device, or one that never reported it) and/or "serialNumber" (no serial number). Use it for questions such as how many devices have no IMEI, or which ones. | |
| lastSeenBefore | No | Only include assets whose record was updated before this ISO-8601 instant (e.g. "2026-01-01T00:00:00Z"). Metadata changes can update the record; this does not prove the device is offline. Must not be in the future. Minute-granularity: a device updated up to 59 seconds after this instant may still be included. | |
| lastSyncBefore | No | Only include devices whose last sync (the portal's "Last sync": their last contact with Nomid) is before this ISO-8601 instant (e.g. "2026-01-01T00:00:00Z"). Use it for devices not synced, not seen or offline since a date. A device that never synced, or an asset without MDM, has no last sync and is never included. Must not be in the future. Minute-granularity: a device that synced up to 59 seconds after this instant may still be included. |