Skip to main content
Glama

Install APK

apk_install

Install an APK file on a connected Android device or emulator; optionally target a device, reinstall while keeping data, or grant runtime permissions automatically.

Instructions

Install an APK file on a connected Android device or emulator

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": "apk_install"
  }
}

Input Schema

NameRequiredDescriptionDefault
apkPathYesAbsolute path to the APK file
deviceIdNoTarget device serial. Omit if only one device is connected
reinstallNoReinstall the app, keeping its data
grantPermissionsNoAutomatically grant all runtime permissions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the write/non-destructive/non-idempotent profile is covered. The description adds the prerequisite that a device must be connected, but says nothing about behavior when the app is already installed (fail vs. replace), how long installs take, or how permission granting affects the outcome — all of which live only in the schema.

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 tight sentence with no filler, and the core action is front-loaded. It is efficient but so short that it omits useful scoping rather than wasting words.

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 a fully described schema and a complete annotation set, the minimal description is close to sufficient for calling the tool. However, for a mutating 4-parameter tool that modifies device state, the missing notes on install-over-existing behavior and failure handling leave a meaningful gap.

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%, so apkPath, deviceId, reinstall and grantPermissions are all documented in the schema itself. The description contributes no additional parameter meaning, such as what happens with reinstall=true versus a fresh install, so the baseline of 3 applies.

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+resource pair ('Install an APK file') and the target ('connected Android device or emulator'), which is unambiguous on its own. It does not distinguish itself from siblings like sdk_install or apk_analyze, so an agent must infer that this is the APK-push path rather than the SDK component path.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over sdk_install, gradle_build, or apk_analyze, and no stated prerequisites (device must be online, apk must exist at the path). The only implicit cue is 'connected', which the agent has to interpret.

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