Skip to main content
Glama

Diagnose

diagnose
Read-onlyIdempotent

Diagnose 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

NameRequiredDescriptionDefault
areaYesWhat 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.
assetIdNoThe asset's path name - the unique identifier returned by search_devices/get_device as "pathName". For remote_access and policy_sync.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
policyIdNoPath name of the policy whose QR code was scanned, when known (the page's policy, or list_policies). For enrollment.
serialNumberNoSerial number of the device that fails to enroll, when the user gave it. For enrollment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare a read-only, idempotent, non-destructive closed-world call, and the description still adds substantial behavior: it discloses the response shape (findings, unknowns, deviceChecks), the error case ('Returns a tool error if no device with that id exists in this company'), and an explicit data-exclusion guarantee (never returns credentials, keys, remote-access ids, or screenshot images/URLs). It also bounds what its own evidence can prove, which is exactly the kind of caveat annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and organized by area headings, but it is very long (~450 words) and redundant: the opening paragraph previews enrollment checks that are then restated almost verbatim in the enrollment section (offline/mobile-data flags, Wi-Fi attribution, saved QR limitations). The opening summary sentences largely duplicate the per-area text and could be trimmed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only diagnostic tool with no output schema, the description covers everything an agent needs: what each area inspects, what the response contains, what is deliberately withheld, the error condition, and what only the device holder can verify. Its caveats about the limits of server-side evidence prevent the agent from over-claiming a root cause.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the enum already explains each area value, so the baseline is 3. The description reinforces area semantics and adds that assetId scopes to 'one device (asset) of the authenticated company', but it adds no format or constraint detail beyond the schema for assetId, company, policyId or serialNumber.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (diagnose) plus the three exact problem areas it covers, and each area paragraph names the concrete signals it inspects (sync status, NomidRemote install state, policy version, enrollment tokens). An agent can distinguish this from siblings like get_device or list_device_commands without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs 'Run it before guessing a cause' and scopes each area to a failure symptom (cannot be reached remotely, settings/apps not applied, QR enrollment failure). It also sets negative conditions — do not attribute an enrollment failure to Wi-Fi, saved QR options do not prove live Google state — and tells the agent when to stop diagnosing and ask the user for the error, attempt time, model and network.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources