Skip to main content
Glama

Robot Actions — Remote Device Control

device_terminate_app

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.1/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and excels. It discloses the multi-step process (control channel, fallback to `am force-stop`, verification via `pidof`), handles edge cases (persistent apps like Samsung FGS resurrection), and specifies the exact return shape. This is far more transparent than typical tool descriptions, providing the agent with a clear mental model of behavior.

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 description is a single, dense sentence that front-loads the core action and then layers in fallback, verification, and return details. It is concise without being terse, though the string of clauses could be slightly easier to parse. Still, it earns its length by covering key behavioral aspects.

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?

The description covers the process, fallback, verification, error handling (persistent apps), and return value. It does not mention prerequisites like device connectivity or app installation, but these are likely implicit for a force-stop tool. The absence of an output schema is mitigated by explicitly describing the return object. Overall, it's nearly complete for an agent to use correctly, with minor gaps around environmental assumptions.

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% for both parameters, so the schema already explains 'udid' and 'packageName' adequately. The description does not add additional meaning beyond what's in the schema, such as format requirements or interplay between parameters. Per the baseline rule for high schema coverage, a score of 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 description clearly states the verb ('Force-stop'), resource ('Android app by package name'), and specifies it's Android-specific. It distinguishes from siblings like device_clear_app_data or device_uninstall_app by focusing solely on force-stopping. The return object and fallback details further clarify its exact scope.

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 does not explicitly mention when to use this tool versus alternatives such as device_clear_app_data or device_uninstall_app. Usage is implied by the tool's name and purpose, but there is no guidance on when not to use it or which alternative might be preferred for specific scenarios. Given the narrow purpose, the lack of explicit routing is acceptable but not exemplary.

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