Skip to main content
Glama

Send device command

send_device_command

Send one command to real, physical devices, the command chosen with command: one device (assetId, its pathName from search_devices or get_device), several (assetIds, up to 50 pathNames) or every device of a policy that can take commands (devicesInPolicy, its pathName from list_policies; at most 50). For several devices make one call with all of them, never one call per device. It runs immediately: confirm intent with the user before calling it, naming how many devices, and never resend one after an unconfirmed result without asking the user first. A command's own arguments are named in its line, and passing another command's argument is an error. Returns a tool error if no device with that assetId exists in this company or its status or device type does not allow the command. On several devices, a device that cannot take it does not stop the others: the result lists each device's outcome (SENT, NOT_SENT and safe to retry with retryAssetIds, UNCONFIRMED, FAILED). Needs the device command permission (change_device_policy also the policy read permission). The result says whether the device confirmed it; follow it with list_device_commands. Commands:

  • lock_device: Lock its screen now; the user unlocks it again normally.

  • start_lost_mode: Lock it and show message (required) and the optional phoneNumber, email, streetAddress and organization on its lock screen. Undo with stop_lost_mode.

  • stop_lost_mode: End lost mode (the device was found). Nothing happens if it was not in lost mode.

  • send_device_message: Show a notification with title and body (both required) on it. Each call sends another one.

  • request_status_report: Ask it for a fresh status report (battery, network, apps, security); it arrives shortly, read it with get_device.

  • force_location_update: Ask it to report its location now; read it afterwards with get_device.

  • sync_policy: Send it its current policy again. Nomid agent (AOSP) devices only: Android Management devices get policy changes by themselves.

  • reboot_device: Restart it now; interrupts whoever is using it.

  • shutdown_device: Power it off (AOSP only). Someone has to turn it on again by hand.

  • launch_app: Open the installed app packageName on it (AOSP only).

  • change_device_policy: Move it to the policy policyId (pathName from list_policies): it applies that policy's apps and settings and loses what only the current one had. Name both policies.

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": {
      "command": "<command>"
    },
    "name": "send_device_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoPlain-text notification body shown on the device. Required. For send_device_message.
emailNoContact email address shown on the lock screen. Optional. For start_lost_mode.
titleNoPlain-text notification title shown on the device. Required. For send_device_message.
assetIdNoThe asset's path name - the unique identifier returned by search_devices/get_device as "pathName".
commandYesThe command to send, one of the lines of this tool's description.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
messageNoMessage shown on the device's lock screen while it is in lost mode, e.g. "This device is lost, please call...". Required. For start_lost_mode.
assetIdsNoSeveral devices instead of assetId: their pathNames, 2 to 50. One call sends the command to all of them; never one call per device.
policyIdNoThe new policy's path name - the unique identifier returned by list_policies as "pathName". For change_device_policy.
packageNameNoPackage name of the installed app to open, e.g. "com.example.app". For launch_app.
phoneNumberNoContact phone number shown on the lock screen. Optional. For start_lost_mode.
organizationNoOrganization name shown on the lock screen. Optional. For start_lost_mode.
streetAddressNoContact street address shown on the lock screen. Optional. For start_lost_mode.
devicesInPolicyNoEvery device of this policy (its pathName from list_policies) that can take commands, instead of assetId; at most 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing execution timing (immediate), required permissions, the per-device outcome vocabulary (SENT, NOT_SENT with retryAssetIds, UNCONFIRMED, FAILED), partial-failure semantics (one bad device does not stop the rest), and error conditions when the assetId is unknown or the device type cannot take the command. The annotations declare destructiveHint=false while the text describes reboot interrupting a user, shutdown requiring manual power-on, and change_device_policy losing settings only the prior policy had; this is a tension worth noting, but it reads as disruption rather than a flat contradiction of a read/write claim.

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?

Front-loaded with capability, targeting, and the urgency warning before the long command catalogue, which is the right order for a mutation tool. The bulk is justified by eleven enum values, though a few clauses restate schema-driven facts (e.g. 'the command chosen with command') and could be trimmed.

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 14-parameter mutation tool with no output schema, the description covers everything an agent needs: targeting modes, limits, confirmation protocol, permission requirements, per-device return shape, and the logical next call. Return values are explained in prose precisely because no output schema exists, which is the right compensation.

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 schema already tags each field with the command it belongs to, so the description's per-command field lists (message for start_lost_mode, title/body for send_device_message, packageName for launch_app, policyId for change_device_policy) largely restate structured data. The genuinely additive piece is the cross-parameter rule that passing another command's argument is an error; baseline 3 is appropriate given the schema carries the field-level burden.

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 sentence gives a specific verb and resource ('send one command to real, physical devices') and immediately enumerates the three targeting modes (assetId, assetIds, devicesInPolicy) with where each identifier comes from. Each of the eleven enum values is then defined in one line, so an agent can tell exactly what any given command does 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?

Explicit routing rules: use one call for a set of devices rather than one call per device, size limits (up to 50), and the required confirmation flow ('confirm intent with the user before calling it, naming how many devices') plus the no-resend rule after an unconfirmed result. It also names the follow-up tool ('follow it with list_device_commands') and points to get_device for the report result, leaving little to inference.

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