Skip to main content
Glama

Compare coverage

codecov_compare
Read-only

Compare coverage between two commits (base vs. head) or for a pull request. Provide EITHER both base and head, OR pullid. Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/compare/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoBase commit SHA (use together with `head`).
headNoHead commit SHA (use together with `base`).
repoYesRepository name, e.g. 'codecov-api' (required).
ownerYesOwner username — the organization or user login on the git service, e.g. 'codecov' (required).
pullidNoPull request id to compare (use instead of base/head).
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

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds the REST endpoint path (useful for tracing), but discloses nothing further about behavior such as whether a missing base/head yields an error or what the comparison scope covers. With annotations carrying the main burden, a 3 is appropriate.

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, front-loaded with the core action, then the invocation constraint, then the endpoint. No filler; every clause earns its place.

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?

For a read-only comparison tool with no output schema and full schema coverage, the definition covers invocation modes adequately. The only gap is that it says nothing about what the comparison returns (coverage deltas), though with readOnlyHint set this is a minor omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-parameter meaning is already documented, but the description adds a cross-parameter constraint the schema does not state as a rule: base/head and pullid are mutually exclusive invocation modes. That mutual-exclusivity rule is genuine added semantic value.

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?

States a specific verb ('compare') and resource ('coverage between two commits or a pull request'), plus the underlying REST endpoint. It is clearly distinguishable from siblings like codecov_get_commit or codecov_compare_impacted_files, which fetch rather than diff coverage between two refs.

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?

Gives explicit, actionable invocation conditions: provide EITHER both `base` and `head` OR `pullid`. That is strong conditional guidance, but it does not say when to choose this tool over adjacent siblings (e.g. compare_impacted_files), so it stops short of full alternative routing.

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.