Diagnose
diagnoseDiagnose a problem in one call, the problem chosen with area. Run it before guessing a cause. For enrollment, inspect current saved defaults and recent QR options, including offline and mobile-data flags, before attributing a failure to Wi-Fi. Saved QR options do not identify the QR scanned or prove live Google state.
remote_access, policy_sync (one device, by assetId): Diagnose a problem area on one device (asset) of the authenticated company in a single call. area "remote_access" explains why the device cannot be reached or controlled remotely: device sync and status, whether its policy includes NomidRemote and its relevant settings, whether NomidRemote is installed and up to date, whether its service is checking in and can capture the screen and take input, and the recent remote-access requests and sessions with how they ended: the outcome the portal recorded for each request (connected, offline, timeout, password_wrong, rejected, cancelled, ...) and the diagnostic events NomidRemote reported around it (service stops, lost connection to the remote-access server, network changes, relay failures, with battery and network context). area "policy_sync" explains why a device or a feature on it does not work as configured (settings or apps not applied, screen preview or classroom mode showing no image): whether the device synced recently, whether it applied the current version of its policy, whether the policy's required apps are installed or failed to download, whether the Nomid agent is up to date, and its screenshot state (the newest screenshot, and whether recent screenshot requests were answered, answered without an image, failed or never answered). Returns "findings" (likely causes, most likely first, each with evidence and a next step) and "unknowns" (what could not be determined, to ask the user about). Never returns credentials, keys, remote-access ids, screenshot images or their URLs. Returns a tool error if no device with that id exists in this company.
enrollment (devices that fail to enroll with a QR code): Diagnose why Android devices fail to enroll (provision) into this company with a QR code, in one call. Check current saved provisioning defaults and bounded recent saved QR options first: allowOffline, useMobileData, whether defaults select Wi-Fi, and whether a saved QR link would embed Wi-Fi now. A selected network may still be too large to fit in a QR. A device may join Wi-Fi manually, and company Wi-Fi settings do not prove the scanned QR embedded it. This also checks saved QR Wi-Fi format (never the password), whether Android Enterprise is linked, the policy and its enrollment tokens, whether the device (by serial number) ever reached Google, and devices stuck in setup. Returns "findings" (likely causes, most likely first, each with evidence and a next step), "unknowns" (what to ask the user) and "deviceChecks" (what only the person holding the device can check). Saved options do not identify the QR actually scanned, validate Google live, or reveal the exact device error. Ask for the error, attempt time, device model and network used when needed.
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": {
"area": "<area>"
},
"name": "diagnose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | What to diagnose. remote_access: why the device cannot be reached or controlled remotely. policy_sync: whether the device is in sync (recent sync, current policy version applied, required apps and Nomid agent installed) and its screenshot state, for a device or feature that does not work as configured. enrollment: why devices fail to enroll with a QR code. | |
| assetId | No | The asset's path name - the unique identifier returned by search_devices/get_device as "pathName". For remote_access and policy_sync. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| policyId | No | Path name of the policy whose QR code was scanned, when known (the page's policy, or list_policies). For enrollment. | |
| serialNumber | No | Serial number of the device that fails to enroll, when the user gave it. For enrollment. |