Skip to main content
Glama

Send destructive device command

send_destructive_command
Destructive

Send one command that cannot be undone to one real, physical device, the command chosen with command; these are never sent to several devices at once. It runs immediately, with no approval step in Nomid: before calling it, tell the user exactly what it does to which device and get an explicit yes, and never resend one after an unconfirmed result without asking. assetId is the device's pathName from search_devices or get_device. 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. Needs the destructive device command permission and the company's destructive commands opt-in (clear_app_data: the device command permission). Commands:

  • wipe_device: Destructive. Remove it from management and erase its managed data: a factory reset on a company-owned device, the work profile on a personal one. Irreversible.

  • reset_screen_lock: Destructive. Remove its screen lock (PIN, pattern or password), Android Management only.

  • change_screen_lock_password: Set newPassword (the password the user chose; ask for it, never invent one) as its screen lock password, Android Management only: it locks and only the new password unlocks it.

  • relinquish_ownership: Destructive. Release a company-owned device to its user: the work profile and its data are removed and it is no longer managed. Irreversible. Only for a company-owned device with a work profile (or a PICO headset): a fully managed device leaves management only by a wipe.

  • uninstall_apps: Destructive. Uninstall the apps in packageNames with their data (AOSP/PICO, Nomid agent 4.5.20 or later), never the Nomid agent. It runs when the device next checks in, even days later: follow it with list_device_commands. An app its policy installs comes back on the next sync: to keep it off, block it in the policy.

  • clear_app_data: Erase all data of the apps in packageNames (accounts, settings, files), Android Management only. Cannot be undone.

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

Input Schema

NameRequiredDescriptionDefault
assetIdYesThe 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.
newPasswordNoThe new screen lock password the user chose. For change_screen_lock_password.
packageNamesNoPackage names of the apps, e.g. ["com.example.app"]. For uninstall_apps, clear_app_data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds substantial context beyond them: no approval step inside Nomid, required permission plus company opt-in, immediate execution, error conditions for missing/ineligible devices, and deferred execution for uninstall_apps (runs on next check-in, days later). It also discloses a non-obvious side effect – policy-installed apps reappearing unless blocked in the policy.

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-loads the core safety constraint before the command catalog, and each command line carries distinct, load-bearing detail (scope, platform limits, irreversibility, timing). Slightly padded by repeating the word "Destructive." on every line, which the tool name and annotations already convey.

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 high-risk mutation with no output schema, the description covers what an agent needs: prerequisites, per-command parameters and effects, execution timing, failure modes, and follow-up tooling. No output schema is needed because the only stated return behavior is a tool error on ineligible devices.

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 baseline is 3; the description adds a cross-parameter rule the schema cannot express (each command's arguments are named in its own line, and passing another command's argument is an error) and steers newPassword to the user-chosen value. Some content, such as assetId being pathName from search_devices/get_device, merely restates the schema.

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 concrete verb+resource ("Send one command that cannot be undone to one real, physical device") and immediately bounds the scope (single device, never several at once). The enumerated command list makes the exact capability set unambiguous, so an agent can distinguish this from a generic command tool.

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

Usage Guidelines4/5

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

Gives strong when-to-use and how-to-use guidance: confirm with the user first, never resend after an unconfirmed result without asking, and follow uninstall_apps with list_device_commands. It also states per-command applicability (Android Management only, company-owned only). It stops short of naming the non-destructive sibling as the alternative for safe commands, so a 4 rather than a 5.

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