Skip to main content
Glama

Get coverage totals

codecov_get_coverage_totals
Read-only

Coverage totals for a commit (defaults to default branch head), plus per-file totals. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/totals/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shaNoCommit SHA to report on (defaults to the default branch head).
flagNoRestrict totals to a coverage flag.
pathNoRestrict totals to a file or directory path prefix.
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
componentIdNoRestrict totals to a component (maps to `component_id`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, so the safety profile is already covered. The description usefully adds the default-SHA behavior and that the payload includes per-file totals, but says nothing about permissions, rate limits, or response shape beyond that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the outcome is front-loaded and the REST endpoint is a compact disambiguator. Nothing is padded, though the raw endpoint is marginal value for an agent.

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?

With no output schema, the description must carry the return-shape burden; it does hint at per-file totals but omits response structure. It also leaves the relationship to the many overlapping coverage-report siblings unexplained, which matters given the crowded namespace.

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 all eight parameters are documented in the schema itself, including the sha default and the enum for service. The description adds no syntax or semantics beyond restating the sha default, 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?

The description states a specific resource (coverage totals for a commit, plus per-file totals) and scopes it by defaulting to the default branch head. It does not name or contrast the closely-overlapping siblings (codecov_get_coverage_report, codecov_get_file_coverage), so differentiation is left to the agent.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no alternatives named, despite ~23 siblings with obvious overlap (get_coverage_report, get_file_coverage, get_report_tree). The only implicit cue is the default-branch scoping, which is not enough to route the agent reliably.

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.