Skip to main content
Glama

Run Android Lint

lint_run
Idempotent

Run Android Lint analysis on a project to surface warnings, errors, and suggestions with file locations, so you can find code issues before building or releasing.

Instructions

Run Android Lint analysis on a project and return warnings, errors, and suggestions with file locations

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": "lint_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
fatalNoIf true, report as error when fatal lint issues are found
moduleNoModule to lint:app
projectDirYesAbsolute path to the Android project root directory

Output Schema

NameRequiredDescriptionDefault
successYes
exitCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the shape of the results (warnings/errors/suggestions with file locations), but says nothing about runtime cost, whether report files are written to disk (consistent with readOnlyHint=false), or what a 'fatal' run changes.

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 naming the action and the return content, with zero filler. It does not repeat the schema or annotations.

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?

An output schema exists, so return values need not be explained, and all three parameters are documented in the schema. What remains thin is operational context — setup requirements and cost of a lint run — which prevents a 5 for a tool that shells out to a build system.

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%, so projectDir, module, and fatal are all documented in the schema with defaults. The description adds no information about parameter values or interactions, so the baseline 3 applies.

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 ('Run Android Lint analysis on a project') and adds what comes back (warnings, errors, suggestions with file locations). It is distinguishable from gradle_task or apk_analyze by the resource named, though no sibling is explicitly referenced.

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?

Usage is implied: an agent can infer this is the static-analysis tool as opposed to building or installing. There is no explicit when-to-use framing (e.g. before a build, instead of gradle_task) and no exclusions or prerequisites such as needing a synced Gradle project.

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