Skip to main content
Glama

Install APK

android_install
Destructive

Installs an APK on a connected Android device and grants runtime permissions, replacing any existing installation so agents can deploy builds for testing.

Instructions

Installs (replaces) an APK and grants runtime permissions.

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

Input Schema

NameRequiredDescriptionDefault
serialNoDevice serial; optional if one device
apkPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutating nature is known; the description still earns credit for adding the two traits annotations cannot express — that an existing install is replaced, and that runtime permissions are granted as part of the operation. It stops short of saying whether existing app data survives a replace or what happens on signature mismatch, which are the remaining behavioral unknowns.

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?

A single tightly packed sentence with the highest-value fact — replacement — placed in parentheses directly after the verb. No filler, nothing to trim.

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

Completeness3/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 should say what a caller gets back (success/failure signal, install errors) and whether the granting of permissions is automatic or gated. Given a simple two-parameter mutation tool with annotations, the definition is workable but leaves the return contract and apkPath format to guesswork.

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?

Only one of two parameters carries a schema description ('serial ... optional if one device'), leaving apkPath undocumented at 50% coverage. The description never clarifies whether apkPath is a host filesystem path or a device path, nor how the granting of runtime permissions is controlled (it appears to be unconditional and has no parameter). The description therefore does not compensate for the coverage 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?

The description names a specific verb and resource ('Installs ... an APK') and adds discriminating detail a bare name would not carry: '(replaces)' signals overwrite semantics and 'grants runtime permissions' signals a side effect. It does not explicitly contrast with the sibling android_launch, but the action is distinct enough to be selected 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 Guidelines3/5

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

Usage is only implied: an agent can infer this is the step to perform before android_launch, and that '(replaces)' means it doubles as an upgrade path. There is no explicit statement of when to prefer this over launching an already-installed app, and no prerequisites (device connected, APK already built via gradle_build) are spelled out.

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