Skip to main content
Glama

Robot Actions — Remote Device Control

Device terminate app

device_terminate_app
DestructiveIdempotent

Force-stop an Android app by package name. Tries the control channel first, falls back to am force-stop, verifies with pidof, and surfaces diagnostic info if the app persists (e.g. Samsung FGS resurrection). Returns { stopped, wasRunning, transport, retryRecommended }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)
packageNameYesAndroid package name to force-stop (e.g. com.android.chrome)

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 declare destructive/idempotent/non-readOnly, but the description goes well beyond them: it discloses the control-channel-first strategy, the `am force-stop` fallback, `pidof` verification, and that diagnostics surface when an app persists (Samsung FGS resurrection). That is exactly the kind of failure-mode context an agent cannot get from structured fields.

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

Conciseness5/5

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

Two tightly packed sentences with zero filler; the core action leads and the mechanism/return details follow. Every clause carries information.

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

Completeness4/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 helpfully enumerates the return fields (stopped, wasRunning, transport, retryRecommended) and explains the fallback behavior. It omits prerequisites such as required device permissions or whether root is needed for the force-stop path, leaving a small gap for a destructive operation.

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 both parameters are documented with an example (com.android.chrome), so the schema carries the semantic load. The description adds only the phrase 'by package name', which is baseline-level reinforcement.

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 precise verb and resource ('Force-stop an Android app by package name'), which cleanly separates it from ios_terminate_app, device_uninstall_app, and device_clear_app_data without needing to name them. The platform and package-name scoping make the target unambiguous.

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?

The description explains the internal fallback chain but never states when to choose this tool over alternatives like device_uninstall_app (remove) or device_clear_app_data (reset state). Usage is implied by the verb rather than explicitly guided, so a 3 is warranted.

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