Skip to main content
Glama

Create Project

project_create

Create a new Android project scaffold with Kotlin and Gradle KTS, optionally using Jetpack Compose, by specifying project name, package name, and parent directory.

Instructions

Create a new Android project with Kotlin and Gradle KTS, optionally with Jetpack Compose

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": {
      "projectName": "<projectName>",
      "packageName": "<packageName>",
      "parentDir": "<parentDir>"
    },
    "name": "project_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
minSdkNoMinimum Android SDK version
parentDirYesParent directory where the project folder will be created
targetSdkNoTarget Android SDK version
agpVersionNoAndroid Gradle Plugin version8.7.3
useComposeNoUse Jetpack Compose instead of XML layouts
packageNameYesJava/Kotlin package name, e.g. 'com.example.myapp'
projectNameYesProject name (will also be the directory name)
kotlinVersionNoKotlin version2.1.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write, so the safety profile is covered. The description adds the generated stack (Kotlin + Gradle KTS, Compose optional) but says nothing about whether parentDir must exist, what happens if the target directory already exists, or which files are written — meaningful gaps for a scaffolding mutation.

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?

A single front-loaded sentence with the action first and the fixed stack second; there is no redundant or filler wording.

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 an eight-parameter project generator with no output schema, the description covers purpose and stack but omits what the tool produces (project path/name of created files) and failure/overwrite behavior. Adequate to select the tool, thin for invoking it confidently with parentDir.

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 all eight parameters are already documented with defaults (minSdk 24, targetSdk 35, agpVersion 8.7.3, kotlinVersion 2.1.0). The description only reiterates the Compose optionality implied by useCompose and the Kotlin/KTS choice; it adds no format or constraint detail beyond the schema.

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 specific verb and resource ('Create a new Android project') plus the fixed stack (Kotlin, Gradle KTS), which separates it from siblings like avd_create or scaffold_activity that operate on emulators or existing projects. It never names or contrasts a sibling explicitly, so it lands just 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 Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as scaffold_activity, or on prerequisites (e.g., that it should run before gradle_build). The only hint is 'optionally with Jetpack Compose', which describes a parameter rather than usage context.

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