Skip to main content
Glama

Gradle project properties

gradle_project_properties
Read-only

Retrieve a Gradle module's evaluated properties—including namespace, Android SDK settings, build directory, and other effective configuration—with secret-shaped values redacted.

Instructions

Dump Gradle's evaluated properties for one module, such as :app or :feature:login. Use after list_gradle_projects when you need the module's namespace, Android SDK settings, build directory, or other effective configuration rather than just its task/variant names. This is the module's FULL effective property set — the same one ./gradlew properties would print, which can include credentials a build.gradle reads from ~/.gradle/gradle.properties or env (e.g. private Maven repo auth). Values for keys that look secret-shaped (password/token/key/credential) are redacted before being returned.

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": {
      "module": "<module>"
    },
    "name": "gradle_project_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
moduleYesGradle module path, e.g. :app or :feature:login.
project_dirNoPath to the Android project root containing the Gradle wrapper (gradlew). Optional if session_set_defaults has pinned a project_dir for this session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover only readOnlyHint and openWorldHint; the description adds materially: the output equals what './gradlew properties' prints, may surface credentials read from ~/.gradle/gradle.properties or env (private Maven repo auth), and secret-shaped keys (password/token/key/credential) are redacted before return. That is exactly the security and scope context an agent can't infer from the annotations, and it does not contradict readOnlyHint.

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?

Three sentences, front-loaded with what it does, then routing, then the safety caveat last where it matters most. Every sentence carries load, including the credential/redaction warning, with no restating of the title or annotations.

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?

No output schema exists, and the description names the kind of content returned (namespace, SDK settings, build directory, full effective property set), its parity with ./gradlew properties, and the redaction behavior. That is sufficient for a two-parameter read-only tool.

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 both parameters are already documented in-schema, and the module example in the description duplicates the schema text. The description never mentions project_dir or the session default fallback, so it adds essentially no parameter meaning beyond structured fields; baseline 3 applies.

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?

States a specific verb ('Dump') and resource ('Gradle's evaluated properties') scoped to one module, with concrete module-path examples (:app, :feature:login). It also implicitly separates this from list_gradle_projects, list_gradle_tasks and list_gradle_variants by contrasting 'effective configuration' with 'just its task/variant names'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly names the sequencing ('Use after list_gradle_projects') and the deciding condition: you need namespace, Android SDK settings, build directory or other effective configuration rather than task/variant names. An agent can pick between this and the sibling list_* tools without opening a schema.

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