Skip to main content
Glama

Build, install and launch

run_app

Assemble an app variant, install it on a connected device or emulator, and launch the launcher activity as a job. Use it to deploy and start an Android app directly from an agent.

Instructions

The Android Studio 'Run' button: assemble the variant, install it on the device, and launch the launcher activity. Runs as a job.

Input Schema

NameRequiredDescriptionDefault
moduleNo
serialNoTarget device; optional when exactly one is online
variantNodebug
waitSecNoSeconds to wait before returning. If the build is still running, poll with job_status.
projectDirNoAndroid project root. Defaults to ANDROID_PROJECT_DIR or the server's cwd.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; 'Runs as a job' is a valuable disclosure that the call is asynchronous and returns before completion. However, it does not say what the job handle looks like, that job_status must be polled, that it mutates device state, or what happens on build failure or when multiple devices are attached.

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?

Two tight sentences, front-loaded with the conceptual anchor, zero filler. Every clause earns its place by naming the three concrete steps and the async execution model.

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?

For a five-parameter, zero-required, no-annotation, no-output-schema tool, the description should at least say what comes back (a job identifier) and how to continue/poll. The 'Runs as a job' line gestures at this but leaves the return contract and multi-device selection behavior unexplained.

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 coverage is 60%: serial, waitSec and projectDir are documented, but module and variant are bare. The description only obliquely touches 'variant' via 'assemble the variant' and says nothing about 'module', so it does not compensate for the two undocumented parameters and adds no format or defaulting semantics.

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?

States a concrete composite verb chain (assemble → install → launch launcher activity) tied to a recognizable metaphor, the Android Studio 'Run' button. An agent can tell this is a one-step build+install+launch rather than any single sibling, though the description never explicitly contrasts with build/app_install/app_launch.

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?

The 'Run button' framing implies when to use it (full end-to-end deploy), but there is no explicit guidance on when to prefer the granular siblings (build, app_install, app_launch) or on prerequisites such as a device being online or a synced project. Polling guidance lives only in the waitSec schema field.

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