Skip to main content
Glama

List device commands

list_device_commands
Read-onlyIdempotent

Get the most recent commands sent to a device (asset) in the authenticated company, newest first: type, status, timestamps, a short outcome code and who sent it. requestedByType USER means a portal user, named in requestedBy by email (also when Nomid Agent sent it for them; SUPPORT is Nomid or partner support); API_KEY means an integration, named by the key's name. No requestedBy means no person or key was recorded: Nomid itself (a policy change, an automation), the device, or a command sent before this was recorded; never guess who it was. When Google said why a command failed, reason carries it: RESET_PASSWORD_RECENTLY means lost mode was refused because the device's password was reset shortly before (Android blocks lost mode for a while after a reset; try again later without resetting it again), USER_EXIT_LOST_MODE_RECENTLY that the user recently left lost mode, ALREADY_IN_LOST_MODE / NOT_IN_LOST_MODE that the device was already in / not in lost mode. Command payloads and any sensitive data (e.g. passwords) are never included. Returns a tool error if no asset with that id exists in this company.

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": {
      "assetId": "<assetId>"
    },
    "name": "list_device_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of commands to return, newest first. Defaults to 20, capped at 50.
assetIdYesThe asset's path name - the unique identifier returned by search_devices/get_device as "pathName".
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world, so the safety profile is covered; the description still adds substantial non-structured behavior: newest-first ordering, exclusion of payloads and sensitive data like passwords, and a concrete failure mode ('Returns a tool error if no asset with that id exists in this company'). It also explains how ambiguous records are represented (no requestedBy means Nomid itself, the device, or pre-recording) and warns against guessing, which is real interpretive guidance.

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?

The core purpose is front-loaded in the first sentence, and the remaining content (requestedByType values, reason codes, redaction) is genuinely load-bearing given there is no output schema. The middle section is a single dense block of enum-like explanations that would scan faster as a short list, but little of it is filler.

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 no output schema, the description carries the full burden of explaining return values and it does so thoroughly: fields returned, requester-type semantics, reason-code meanings, and data deliberately omitted. It also covers the error case, leaving nothing an agent needs to call and interpret this tool correctly.

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 coverage is 100% and all three parameters are documented in the schema itself, including assetId as the 'pathName' from search_devices/get_device and the limit default/cap. The description adds only marginal parameter-level meaning, mainly the error condition tied to an unknown assetId and the 'authenticated company' framing; baseline 3 is appropriate.

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?

The opening clause states a specific verb and resource ('Get the most recent commands sent to a device (asset)'), adds ordering ('newest first') and scope ('in the authenticated company'). The resource is clearly distinct from siblings such as list_device_apps, list_device_user_logins and send_device_command, so an agent can route 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 Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for inspecting a device's command history, and the description notes that command payloads are never included, which hints at its limits. There is no explicit 'use this when... / use X instead' guidance relative to get_device, diagnose, or send_device_command, and no stated prerequisites for the assetId lookup.

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