Skip to main content
Glama

install_apk

Install an APK from the host filesystem onto a connected Android device or emulator, using optional device serial, replacement, and permission-granting settings.

Instructions

Install an APK from the host filesystem onto the device.

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

Input Schema

NameRequiredDescriptionDefault
serialNo
replaceNo
apk_pathYes
grant_permissionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/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 and does not meet it. It is silent on whether an existing installation is replaced or the call fails, whether app data is preserved, whether the install is reversible, what permissions/side-loading settings the device needs, and how long the operation may take (installs are slow, unlike instant shell commands).

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?

One short sentence, front-loaded with the action and resource, with no filler or redundancy. It is efficient but borders on being too terse, since the brevity is achieved by omitting information rather than by tight editing.

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?

An output schema exists, so return values need not be explained, and the tool's core action is unambiguous. However, for a state-mutating, multi-second operation with four undocumented parameters and zero annotations, the definition omits prerequisites (device selection, connectivity) and side effects that an agent needs before invoking it.

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% across 4 parameters, and the description only loosely implies that `apk_path` is a host-side path rather than a device path — a genuinely useful disambiguation but the only one. Nothing explains `serial` (target device selection when multiple are attached), `replace` (default true, i.e. reinstall semantics), or `grant_permissions` (runtime permission auto-grant at install time).

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 gives a specific verb and resource ('Install an APK') plus the direction of transfer ('from the host filesystem onto the device'), which distinguishes it from device-side siblings like uninstall_app or push_file. It stops short of naming an alternative, so it is clear but not sibling-differentiating.

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 when-to-use guidance at all: no mention of needing a connected/selected device (connect/list_devices exist as siblings), no statement about how this differs from shell-based installs via push_file + `pm install`, and no note on when to prefer it over uninstall_app cycles. The agent must infer all routing from the tool name alone.

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