Skip to main content
Glama

Search devices

search_devices
Read-onlyIdempotent

Search 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

NameRequiredDescriptionDefault
pageNoZero-based page number. Defaults to 0.
sizeNoNumber of devices per page. Defaults to 10, capped at 25; with fields "names" defaults to and is capped at 200.
queryNoFree text to find a device by name, serial number, IMEI, model or tag. Use it alone, without status, policy, lastSyncBefore, lastSeenBefore, missing or page.
fieldsNo"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.
policyNoFilter by the policy's path name (its unique short identifier, as returned by list_policies as "pathName" - not its human-readable display name).
statusNoFilter 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.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
missingNoOnly 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.
lastSeenBeforeNoOnly 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.
lastSyncBeforeNoOnly 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds substantive behavior beyond them: pagination caps (25 for full assets, 200 for names), query returning up to 'size' best matches with pathName and matched field instead of a page, the DELETED fallback when no managed device matches, and minute-granularity edge cases where a device synced up to 59 seconds after the instant may still appear. These are exactly the caveats an agent needs to interpret results correctly.

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

Conciseness4/5

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

Purpose and the query-vs-filter distinction are front-loaded, and nearly every clause carries operational detail with no filler. The final sentence about fields=names is heavily nested with quoted field names and could be split, but no sentence is redundant.

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?

With 10 optional parameters and no output schema, the description takes on the burden of describing return shapes and does so: asset contents, query match metadata (pathName, matched field), and the names table columns plus exact total and nextPage. Combined with filter interactions and edge cases, an agent can call this correctly without further context.

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

Parameters4/5

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

Schema coverage is 100%, so the schema carries most parameter documentation; the description nonetheless adds selection-level meaning by contrasting lastSyncBefore (last contact with the portal) against lastSeenBefore (asset record update, 'not proof of being offline'), and by framing fields=names as returning a table instead of 25 full devices. Much of this overlaps with the already-rich schema text, so it is an incremental rather than decisive gain.

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?

Opens with a specific verb and resource ('Search the authenticated company's device fleet') and immediately disambiguates the returned entity ('Devices are returned as "assets"'), listing what an asset carries: policy assignment, custom data, tags, hardware specs, last known location. It is clearly distinguishable from siblings like count_devices or get_device, which are named where relevant.

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?

Explicit routing rules throughout: use 'query' alone to find a named device, use 'fields: names' to list which devices match filters, use 'lastSyncBefore' for 'not synced/offline since a date' and 'lastSeenBefore' only for record freshness, and count_devices for counting. It also states exclusions (query must not be combined with status, policy, lastSyncBefore, lastSeenBefore, missing or page) and defers to list_policies and list_companies for their respective identifiers.

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