Skip to main content
Glama

android_install

Verify the APK package name against the safety layer, then install it with adb install -r; optionally grant permissions.

Instructions

Verify APK packageName against Safety Layer and install with adb install -r.

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": {
      "apk_path": "<apk_path>"
    },
    "name": "android_install"
  }
}

Input Schema

NameRequiredDescriptionDefault
apk_pathYes
grant_permissionsNo

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
outputNo
apk_pathNo
package_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the exact command used and the `-r` reinstall flag (implying existing app data may be preserved/overwritten) and a Safety Layer verification gate, but says nothing about required device state, permissions, or consequences of a failed check.

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?

A single front-loaded sentence with no filler, and the verification step precedes the install in the order an agent would need it. It is concise to the point of under-specification, but no wording is wasted.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, but for a mutation tool with zero annotations and 0% parameter coverage the definition is thin: it omits failure behavior of the Safety Layer check and the meaning of `grant_permissions`, both of which an agent needs to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for two parameters, and the description explains neither. `grant_permissions` is especially ambiguous (auto-grant runtime permissions? which ones?) and `apk_path` format/constraints are undocumented, so the description fails to compensate for the schema gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States two specific verbs (verify, install) on a specific resource (an APK identified by packageName), plus the concrete mechanism `adb install -r`. An agent knows exactly what the call does; it just isn't told how it differs from siblings like android_push, which also moves a file onto the device.

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 implied by the resource (you install an APK), and the 'Verify... against Safety Layer' clause hints at a prerequisite gate. But there is no explicit when-to-use versus when-to-push-instead guidance and no statement of what to do if verification fails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.