Skip to main content
Glama
Repo Insight MCP

Repo Insight MCP

by viradm

list_tree

Lists repository files with their sizes so you can browse a project's file tree. Filter by directory prefix or extension to find the codebase parts worth reading.

Instructions

List files in a repository with their sizes. Filter by directory prefix or extension to find the parts of a codebase worth reading.

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": {
      "repo": "<repo>"
    },
    "name": "list_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNobranch, tag or commit SHAHEAD
repoYesowner/name or a github.com URL
limitNo
extensionNoonly return files with this extension, e.g. 'py'
path_prefixNoonly return paths starting with this prefix

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It never states that this is a read-only operation, that results are capped (the schema's limit defaults to 300, max 2000) and therefore may be truncated, or whether private repos need credentials — all material for an agent deciding how much to trust the listing.

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, front-loaded with the action and resource, then the filtering capability. Nothing is redundant, though 'worth reading' leans slightly editorial rather than informational.

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 not be explained, and the core intent is conveyed. For a 5-parameter tool with no annotations, however, the description omits truncation/limit behavior and safety framing, leaving gaps an agent would want closed.

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 80%, and the description only restates the path_prefix and extension filters that the schema already documents with examples. It adds no meaning for ref or limit beyond what is structured, 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?

States a specific verb and resource (list files in a repository) plus a distinguishing detail (sizes). It does not name a sibling like search_code or read_file, so the agent must infer the boundary itself, but the action is unambiguous.

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?

The phrase 'find the parts of a codebase worth reading' implies this is an orientation/browsing step before read_file, which is useful context. There is no explicit when-not or named alternative, so the agent gets implied rather than stated routing guidance.

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