Skip to main content
Glama

run_linter

Run code linters on Android or iOS projects to identify issues and get structured results with locations and suggestions. Supports Detekt, Android Lint, SwiftLint, and ktlint with optional auto-fix and custom configurations.

Instructions

Run code linter (Detekt, Android Lint, SwiftLint, ktlint). Returns structured lint results with issue locations and suggestions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesTarget platform
projectPathYesPath to the project root directory
linterNoLinter to run (default: detekt for Android, swiftlint for iOS)
moduleNoGradle module for Android linters (e.g., :app)
configPathNoPath to linter configuration file
timeoutMsNoTimeout in milliseconds (default: 300000)
autoFixNoAuto-fix issues if supported by the linter (default: false)
Behavior3/5

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

No annotations are provided, so the description carries full burden. It states the tool returns structured results (implying read-like behavior) but does not disclose that autoFix can mutate files, required permissions, or timeout implications beyond the parameter description.

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, clear and front-loaded with the core purpose and output. No redundant information.

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?

Given 7 parameters, 2 required, and no output schema, the description mentions structured results but does not specify fields of the output, explain how configPath or timeoutMs affect behavior, or cover auto-fix side effects. Could provide more details on output format and tool behavior.

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 baseline 3 is appropriate. The description adds minimal value beyond schema, only hinting at default linters per platform. No additional semantic context for individual parameters.

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?

The description clearly states the tool runs code linters (Detekt, Android Lint, SwiftLint, ktlint) and returns structured results with issue locations and suggestions, distinguishing it from sibling tools like run_unit_tests or build_app.

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?

The description implies usage for linting code but provides no explicit guidance on when to use this tool versus when not to, or how it compares to other tools. No alternatives or exclusions are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abd3lraouf/specter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server