Skip to main content
Glama

Get file coverage

get_file_coverage
Read-only

Get line-by-line coverage for any source file in your Android project, showing exactly which lines are tested and which are not.

Instructions

Show covered/uncovered line numbers of one source file from the latest coverage report (run get_coverage_report first).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesSource file name, e.g. 'BookRepository.kt'
moduleNoModule (defaults to session)
projectDirNoProject root (defaults to session)
Behavior4/5

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

The readOnlyHint annotation already signals safety, and the description adds a behavioral dependency: the tool relies on a prior get_coverage_report run to have data. This is meaningful context beyond the annotation, though error behavior for missing reports is not disclosed.

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 sentence that is front-loaded with the core action and resource, with no redundant wording. It is concise and structured effectively.

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?

The tool is simple (one required parameter, three optional) and the description covers purpose, prerequisite, and output. No output schema is present, but the description states what is shown. Minor gap: it does not mention what happens if the coverage report is absent, but for a read-only tool this is acceptable.

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 baseline is 3. The description adds no parameter-specific detail, but the schema already fully documents 'file', 'module', and 'projectDir' with examples.

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 uses a specific verb ('Show') and resource ('covered/uncovered line numbers of one source file'), clearly stating what the tool does. It also distinguishes from the sibling get_coverage_report by referencing the 'latest coverage report' as the data source.

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

Usage Guidelines4/5

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

It explicitly states a prerequisite: 'run get_coverage_report first', which conveys when to use the tool. It does not explicitly name alternatives or exclusion criteria, but the prerequisite provides sufficient contextual guidance.

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/dev-jackson/androidbuild-mcp'

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