Skip to main content
Glama
MauricePutinas

Android Studio MCP

as_gradle_assemble

Build APK(s) by running a Gradle assemble variant and return the artifact paths (APK, AAB, mapping).

Instructions

Build APK(s) with assemble and report the produced artefacts.

Equivalent to Android Studio's "Build > Build APK(s)". After a successful build the response lists the produced .apk paths under build/outputs.

Args: params (GradleAssembleInput): project_dir, variant ('Debug'/'Release'), optional module (':app'), timeout.

Returns: str: JSON with gradle status, command, and 'outputs' {apk,aab,mapping}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations (readOnlyHint=false, destructiveHint=false) provide basic safety info. The description adds value by stating that the tool produces .apk paths under build/outputs and returns JSON with gradle status, command, and outputs. However, it does not disclose potential side effects like modifying build directories or requiring specific SDK/Android versions.

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?

The description is concise at approximately 6 sentences, front-loads the core purpose, and includes structured Args/Returns sections. Every sentence contributes meaningfully without redundancy.

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?

The description explains what the tool does, what it produces, and the return format, which is adequate for a build tool with an output schema. It lacks explicit mention of prerequisites (e.g., gradlew.bat existence) or error handling, but overall it provides sufficient context for correct usage.

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?

The input schema already provides descriptions for each parameter. The tool description reiterates these, adding concrete examples like 'Debug'/'Release' for variant and ':app' for module. This adds minimal value beyond the schema, so a baseline score of 3 is appropriate.

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?

Description clearly states 'Build APK(s) with assemble<Variant>' and equates to Android Studio's 'Build > Build APK(s)', making the tool's purpose unambiguous. However, it does not explicitly differentiate from siblings like as_gradle_bundle or as_gradle_test, so it falls short of a 5.

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 description implies usage for building APKs by referencing the Android Studio action, but provides no explicit guidance on when to use this tool versus alternatives (e.g., as_gradle_bundle for AABs). No exclusions or context for choosing this specific gradle tool are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MauricePutinas/Android-Studio-MCP-Claude-Code'

If you have feedback or need assistance with the MCP directory API, please join our Discord server