Skip to main content
Glama

previewapk_push_apk

Upload a local APK to an Android device: attach it when the device is off, or hot-swap and relaunch it live when running; optionally replace older builds after a data wipe.

Instructions

Upload an APK file from this machine to the device. If the device is OFF it becomes the attached app (then call previewapk_start). If the device is RUNNING and you hold the wheel, the new app is hot-swapped in live — installed and relaunched with no reboot. Returns the parsed app info (swapped=true on a hot swap; deduped=true when identical bytes were already stored). Installing an OLDER versionCode over the app in a live session is refused (version_downgrade) unless replace=true, which uninstalls the installed app first — its data is deleted.

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": {
      "path": "<path>"
    },
    "name": "previewapk_push_apk"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYeslocal path to the .apk file
deviceNo
replaceNoallow replacing a newer installed build with an older one (uninstalls first, deleting its data)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.1
    • addedInput schema / properties / replace
      Added value: +{
      +  "description": "allow replacing a newer installed build with an older one (uninstalls first, deleting its data)",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses hot-swap-without-reboot behavior, dedupe of identical bytes, downgrade refusal, and that replace=true uninstalls first and DELETES app data. Side effects and destructive consequences are spelled out rather than implied.

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?

Front-loaded with the core action and then ordered by device state, so the reader hits the branching logic immediately. Dense but every clause adds operational meaning; the parenthetical return-value hints are slightly compressed but not wasteful.

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?

No output schema exists, yet the description still explains the return shape (parsed app info, swapped=true, deduped=true). The only real gap is the unexplained 'device' parameter, which matters when multiple devices are in play.

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 coverage is 67% and the description enriches 'replace' with the downgrade scenario and its data-deletion consequence, beyond the schema's own note. However, the 'device' parameter is undocumented in both the schema and the description, leaving one of three parameters unexplained.

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?

States a specific verb and resource ('Upload an APK file from this machine to the device') and immediately branches by device state, which no sibling tool does. It explicitly names previewapk_start as the follow-up, distinguishing it from the rest of the previewapk family.

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

Usage Guidelines5/5

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

Gives explicit when-paths: device OFF → becomes attached app then call previewapk_start; device RUNNING with the wheel held → live hot swap. It also states the refusal condition (older versionCode → version_downgrade) and the escape hatch (replace=true), leaving nothing to inference.

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