Skip to main content
Glama

Get report tree

codecov_get_report_tree
Read-only

Coverage report as a file/directory tree for a commit (defaults to default branch head). Codecov REST: GET /{service}/{owner_username}/repos/{repo_name}/report/tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shaNoCommit SHA to report on (defaults to the default branch head).
flagNoRestrict the tree to a coverage flag.
pathNoRestrict the tree to a directory path prefix.
repoYesRepository name, e.g. 'codecov-api' (required).
depthNoMaximum tree depth to return.
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 the tree 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 already declare readOnlyHint=true, so the safety profile is covered. The description adds useful context: defaulting to the default branch head and the underlying REST endpoint. It does not describe the shape or size of the returned tree (relevant with depth-controlled output), so it adds only modest value.

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 with the functional purpose front-loaded and the API reference trailing. Nothing is wasted, though the REST path is of marginal use to 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?

No output schema exists, and with nine parameters governing filtering, flag/component/path scoping and depth, the description does not explain what the returned tree contains or how filtering interacts. Given full schema coverage, it is minimally adequate 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%, so every parameter (sha, flag, path, depth, owner, repo, branch, service, componentId) is already documented in the schema. The description only restates the commit default, adding nothing beyond the schema. Baseline 3 is appropriate.

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+resource: a coverage report rendered as a file/directory tree scoped to a commit, with the default-branch fallback. It reads clearly against aggregate-report siblings such as codecov_get_coverage_report, though it never explicitly names which sibling to prefer.

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 and no alternatives named. An agent must infer from the tool name alone that this is the hierarchical/structural view rather than the totals or trend views offered by siblings like codecov_get_coverage_report or codecov_get_coverage_trend.

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.