Skip to main content
Glama

List Gradle Tasks

gradle_list_tasks
Read-onlyIdempotent

List available Gradle tasks in an Android project or specific module to identify build, test, and deployment commands without leaving the IDE.

Instructions

List all available Gradle tasks in an Android project

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": {
      "projectDir": "<projectDir>"
    },
    "name": "gradle_list_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
moduleNoSpecific module to list tasks for
projectDirYesAbsolute path to the Android project root directory

Output Schema

NameRequiredDescriptionDefault
tasksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false) and openness, so the description need only add context. It contributes only the Android-project scope, saying nothing about whether a Gradle wrapper must exist, whether the daemon is started, or how long the listing takes.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient but so terse that it leaves the usage and behavioral gaps unaddressed.

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?

An output schema and full annotations exist, so return values and safety are covered elsewhere. For a simple two-parameter listing tool the description is adequate, but it omits the setup assumptions and the discovery-then-execute workflow context that would make it complete.

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 coverage is 100%, with both projectDir and module documented in the schema itself, so the baseline is 3. The description adds no format, path, or behavioral detail about module scoping beyond what the schema already says.

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+resource ("List all available Gradle tasks") and scopes it to Android projects, which separates it from gradle_build, gradle_clean, or gradle_task. It never names a sibling or explicitly contrasts discovery vs. execution, so the differentiation is implied rather than stated.

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?

The description gives no when-to-use guidance, no prerequisites (e.g., run before gradle_task to find a task name), and no alternatives. An agent must infer that this is a discovery step preceding task execution.

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