Skip to main content
Glama

Get file coverage

codecov_get_file_coverage
Read-only

Line-by-line coverage for a single file. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/file_report/{path}/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shaNoCommit SHA to report on (defaults to the default branch head).
pathYesFile path within the repo, e.g. 'src/app.ts' (required; slashes are URL-encoded).
repoYesRepository name, e.g. 'codecov-api' (required).
ownerYesOwner username — the organization or user login on the git service, e.g. 'codecov' (required).
branchNoBranch whose head to report on.
serviceNoGit service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.github

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safe-read profile is covered. The description adds the underlying REST mapping, which aids debugging, but says nothing about what the response contains (e.g. line numbers, hit counts) or any rate/pagination behavior.

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 short sentences, front-loaded with the purpose before the endpoint mapping. No filler; every clause carries information.

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?

There is no output schema, so the description should ideally hint at the return shape; 'line-by-line coverage' does give a partial signal (per-line data rather than totals). Combined with a fully documented schema and a readOnly annotation, this is nearly but not entirely complete.

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 all six parameters including the sha/branch/service defaults are already documented in the schema. The description adds no parameter-level meaning beyond restating the endpoint template, which is the correct baseline 3 when the schema does the heavy lifting.

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 ('line-by-line coverage for a single file') and the scope word 'single' contrasts with repo/report-level siblings like codecov_get_coverage_report. It does not name a sibling explicitly, but the granularity is unambiguous.

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 by the 'single file' scoping and the endpoint path, but there is no explicit when-to-use instruction, no statement of when to prefer codecov_get_report_tree or codecov_get_coverage_report instead, and no prerequisites mentioned.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.