Skip to main content
Glama

list_repo_files

Read-onlyIdempotent

Lists versioned files at a branch, tag, or SHA and resolves the revision to a full commit SHA for stable pagination and subsequent reads.

Instructions

List versioned files at a branch/tag/SHA, resolving it to a full commit SHA.

Reuse the returned revision for stable subsequent pages and reads.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repository": "<repository>",
      "revision": "<revision>"
    },
    "name": "list_repo_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
limitNo
revisionYes
page_tokenNo
repositoryYes

Output Schema

NameRequiredDescriptionDefault
itemsNo
sourceYes
revisionNo
warningsNo
truncatedNo
repositoryYes
next_page_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: the revision is resolved to a full commit SHA, and pinned revisions make later pages/reads stable — information the agent cannot get from the annotations. Ordering of results and pagination limits are still undisclosed.

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 sentences, no filler, and the core capability is front-loaded before the operational tip. Nothing is wasted, though the second sentence assumes a paging context the description never introduces.

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?

An output schema exists, so return values need no explanation, and the revision-resolution behavior is well covered. But for a five-parameter listing tool with zero schema documentation, leaving path filtering and page/limit semantics unexplained is a meaningful gap for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% for five parameters, so the description must carry parameter meaning and largely does not. It explains only 'revision' (branch/tag/SHA → commit SHA) and hints at pagination; 'path' (prefix? directory? filter?), 'limit' (default 100), 'page_token' and 'repository' are left entirely to bare schema titles.

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 names a specific verb and resource ('List versioned files') and scopes it to 'a branch/tag/SHA', which is enough to distinguish it from read_repo_file (single-file read) and the artifact/run siblings. It is clear about what is listed, though it never explicitly contrasts itself with those siblings.

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?

There is real usage guidance for the revision parameter ('Reuse the returned revision for stable subsequent pages and reads'), which tells the agent how to sequence calls. However, there is no when-to-use/when-not guidance relative to read_repo_file or list_artifacts, so the routing decision is left implicit.

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