Skip to main content
Glama

Scaffold android project

scaffold_android_project

Creates a minimal Kotlin Android app in an empty directory with Gradle Kotlin DSL, manifest, launcher Activity, resources, README, and gitignore; adds a Gradle wrapper if system Gradle is available.

Instructions

Create a minimal Kotlin Android application in a new empty directory, including Gradle Kotlin DSL files, an AndroidManifest, a launcher Activity, resources, README, and gitignore. The tool never overwrites a non-empty directory. It also generates the Gradle wrapper when a system gradle is on PATH, so the result is immediately buildable with gradle_build; if no gradle is installed the result says so, and gradle wrapper has to be run in that directory before any Gradle tool here will work (they all drive ./gradlew).

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": {
      "destination": "<destination>",
      "name": "<name>",
      "package": "<package>"
    },
    "name": "scaffold_android_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHuman-readable app name.
packageYesApplication id/package, e.g. com.example.app.
destinationYesEmpty or new directory to create the project in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructiveHint=false and openWorldHint=false; the description adds the substantive behavior: writes a fixed file set, refuses non-empty destinations, conditionally generates the Gradle wrapper, and reports when it could not. It also discloses a downstream consequence — that all Gradle tools drive ./gradlew and will fail until `gradle wrapper` is run. That is real value beyond the structured fields.

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?

Three sentences, front-loaded with the artifact list, then constraints, then the wrapper prerequisite. Dense and purposeful, though the final sentence is a long compound clause that could be split for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a scaffolding tool with thin annotations and no output schema, this covers everything an agent needs: what is produced, the destination precondition, failure behavior on non-empty directories, and the gradle-wrapper dependency that determines whether the result is immediately buildable.

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 description coverage is 100%, so each of the three parameters already carries its own definition, making 3 the baseline. The description reinforces the destination constraint ('new empty directory') and the package/app-id relationship, but adds no format or validation detail not already in the schema.

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?

Specific verb + resource ('Create a minimal Kotlin Android application') with an enumerated artifact list (Gradle Kotlin DSL files, manifest, launcher Activity, resources, README, gitignore). It is clearly distinguishable from siblings like gradle_build or build_and_run, which operate on an existing project rather than generating one.

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?

The description gives the operative condition ('in a new empty directory') and a hard constraint ('never overwrites a non-empty directory'), plus the follow-up path into gradle_build and the fallback when no system gradle exists. It stops short of explicitly naming an alternative tool or stating a when-not-to-use case, but the context needed to choose it is present.

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