Skip to main content
Glama

Lint summary

lint_summary

Ranks Android Lint issues from the last XML report by severity and priority, grouped by ID, and can run lintDebug first when requested.

Instructions

Ranks Android Lint issues (severity, then priority, grouped by id) from the last lint XML report. Set run=true to run lintDebug first.

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_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNoRun :module:lintDebug first
moduleNoGradle module path, default ":app"
maxIssuesNoDefault 15
projectDirYesAbsolute path to the Android project (gradlew is searched upwards)
minSeverityNoDefault Warning

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false with destructiveHint=false, and the description explains exactly why: the default path only reads the last lint XML report, while run=true triggers a lintDebug build. That distinction, plus the fact that results reflect a possibly stale prior report, is meaningful behavioral context beyond the annotations. It stops short of noting that the run=true path is slow or that behavior differs when no report exists.

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?

Two sentences, no filler, and the core behavior is front-loaded ahead of the optional run flag. Every clause earns its place by either describing the output or a non-obvious parameter effect.

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?

With no output schema, the description usefully characterizes the return shape (ranked, grouped by id, severity then priority), which is the main thing an agent would otherwise lack. What remains unstated is edge behavior, such as what happens when no lint report exists or how maxIssues affects output volume.

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 the schema already documents module, maxIssues, projectDir, minSeverity, and run. The description reinforces the run flag and implies the ranking/truncation semantics tied to minSeverity and maxIssues, but adds no format or default detail the schema does not already carry. Baseline 3 is appropriate.

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?

The description gives a specific verb (ranks), a specific resource (Android Lint issues), and a precise source (the last lint XML report), plus the output ordering rule (severity, then priority, grouped by id). It does not explicitly contrast itself with siblings such as gradle_build or logcat, but the resource is distinct enough that an agent can identify it without opening the schema.

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 rather than stated: it operates on an existing lint report, and the second sentence gives the one conditional worth knowing (run=true to invoke lintDebug first). There is no guidance on when to prefer this over a fresh gradle_build or gradle_test run, nor any exclusion for when lint output is unavailable.

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