Skip to main content
Glama

Mobilebox: Cloud phones for your agents

Install app

install_app
Destructive

Install or update an app. By package name alone (package, Android; Play Store apps too), in one call: from its maker's own APK download, F-Droid, or a mirror's copy signed with the maker's own certificate; if no verified copy exists, the answer says why and names its web version to open in the phone's browser. Or from a public download URL (url): an APK (arm64-v8a, 32-bit armeabi-v7a or universal) or a split bundle (.apks/.xapk; the splits this phone needs are picked), up to 2 GB; on an iPhone or iPad, a .zip of the simulator build's .app folder, which opens once installed. Returns the package name (an iOS bundle id) and version; then open it with act {"type":"open_app","package":…}.

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": {
      "phone_id": "<phone_id>"
    },
    "name": "install_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoDirect https link to the .apk, .apks or .xapk file (iOS: the .zip of the .app)
packageNoAndroid: the app's package name (e.g. com.spotify.music, the id= in its Play link), instead of url
replaceNoIf the installed app is signed with a different key (signature_mismatch, e.g. a rebuild with a new debug key): uninstall it and install this build in one call. Deletes that app's data and logins
build_idNoiOS: an app this workspace built with build_app (bld_…), instead of url
phone_idYesPhone id, ph_…
grant_permissionsNoGrant all runtime permissions up front instead of answering the dialogs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / build_id
      Added value: +{
      +  "description": "iOS: an app this workspace built with build_app (bld_…), instead of url",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / package
      Added value: +{
      +  "description": "Android: the app's package name (e.g. com.spotify.music, the id= in its Play link), instead of url",
      +  "maxLength": 255,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "phone_id",
      -  "url"
      -]New value: +[
      +  "phone_id"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / replace
      Added value: +{
      +  "description": "If the installed app is signed with a different key (signature_mismatch, e.g. a rebuild with a new debug key): uninstall it and install this build in one call. Deletes that app's data and logins",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Direct https link to the .apk, .apks or .xapk file"New value: +"Direct https link to the .apk, .apks or .xapk file (iOS: the .zip of the .app)"
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Going well beyond the destructiveHint=true/openWorldHint=true annotations, it discloses the 2 GB cap, supported ABIs, split-bundle auto-selection, the signature_mismatch/replace data-loss path, and the failure behavior (explains why and offers a web version). It also states the return value (package name/bundle id and version) and that iOS installs land openable.

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?

Purpose is front-loaded and every clause carries information (sources, formats, limits, fallback, follow-up call) with no filler. The trade-off is a dense run-on with heavy parenthetical nesting and semicolons that is harder to scan than it needs to be.

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?

For a 6-parameter, cross-platform, multi-source install tool with no output schema, the description covers modes, limits, failure behavior, and return values thoroughly. It leaves implicit the prerequisites (phone must be running/registered, auth or capability requirements) that an agent might need before calling.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds real meaning by tying package to Android only, spelling out the APK variants accepted for url, mapping build_id to an iOS build_app output, and describing replace's data-loss consequence. This enriches interpretation beyond the schema text.

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?

The description opens with a specific verb and resource ('Install or update an app') and immediately enumerates the two invocation modes (package name vs. url) plus the iOS build_id path, so an agent can tell exactly what the tool does and which form to use. It is clearly distinguishable from siblings like uninstall_app or build_app.

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

Usage Guidelines4/5

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

It gives concrete when-to-use conditions: package alone for Play/F-Droid/verified-mirror installs, url for a direct APK/split bundle or an iOS simulator .zip, and it points to act {"type":"open_app"} as the follow-up. It also explains the fallback when no verified copy exists. It stops short of an explicit 'when not to use' or naming uninstall_app as the alternative for reinstall-only cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.