Skip to main content
Glama

Get coverage trend

codecov_get_coverage_trend
Read-only

Coverage measurements over time for a repository, bucketed by interval. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/coverage/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for paginated results (1-based).
repoYesRepository name, e.g. 'codecov-api' (required).
ownerYesOwner username — the organization or user login on the git service, e.g. 'codecov' (required).
branchNoBranch to measure (defaults to the default branch).
endDateNoEnd of the range, yyyy-mm-dd (maps to `end_date`).
serviceNoGit service provider — one of 'github' (default), 'gitlab', 'bitbucket', 'github_enterprise', 'gitlab_enterprise' or 'bitbucket_server'.github
intervalNoAggregation interval for the trend — '1d', '7d' or '30d'.
pageSizeNoNumber of results per page (maps to `page_size`).
startDateNoStart of the range, yyyy-mm-dd (maps to `start_date`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's main added value is the bucketing-by-interval behavior and the underlying REST endpoint. It says nothing about how pagination interacts with bucketing or what happens when a branch/date range yields no data, leaving real behavioral gaps. Some value added, but not rich.

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 compact sentences with the purpose front-loaded and the endpoint reference appended as supporting detail. Every clause earns its place; there is no filler.

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?

For a 9-parameter read tool with no output schema, the definition is adequate but thin: it does not describe the shape of the returned time series or how paging and interval interact, which an agent calling this correctly would benefit from knowing. Annotations cover safety and the schema covers parameters, so it is minimally viable rather than 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% (interval, service, branch, start/end date, paging are all documented in the schema), so the baseline is 3. The phrase 'bucketed by interval' adds a little semantic weight to the interval parameter, but nothing beyond what the schema already conveys.

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: 'Coverage measurements over time for a repository, bucketed by interval.' This is clear and actionable, and the REST endpoint mapping reinforces the resource. However, it never distinguishes itself from the sibling codecov_get_flag_coverage_trend, so an agent must infer that this one is repo-scoped rather than flag-scoped.

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?

No when-to-use guidance at all: nothing says when a trend query is preferable to codecov_get_coverage_totals or the flag-level trend sibling. The name implies usage, but there are no stated conditions, prerequisites, or exclusions.

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.