Skip to main content
Glama

list_tree

List files and folders under a repository path to navigate GitHub structure before retrieving a specific file.

Instructions

List files/folders under a path in a repository (from GitHub). Useful to navigate before get_file.

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

Input Schema

NameRequiredDescriptionDefault
refNoBranch or commit; defaults to default branch
pathNoDirectory path, empty for repo root
task_idNo
full_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and does not meet it. It never says whether the listing is one level or recursive, whether results are paginated or truncated, how private-repo auth is handled, or whether the call is safe/read-only (it is implied, but not stated). Only the GitHub provenance is disclosed.

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 short sentences, front-loaded with the action and resource, with zero filler. The brevity is appropriate even if it leaves gaps elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no annotations and no output schema, the description is too thin. An agent still cannot tell the listing depth, result size limits, the meaning of task_id, or the expected full_name format before invoking it.

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 coverage is 50%: ref and path are documented in the schema, while task_id and full_name are not documented anywhere. The description does not compensate: it says nothing about task_id's role or the owner/repo format expected for full_name, and adds no meaning beyond 'path in a repository'.

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/folders under a path in a GitHub repository. It also scopes the operation as navigation feeding into get_file, which separates it from the retrieval sibling. It stops short of distinguishing it from search_in_repo, so it is clear but not fully differentiated.

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 'Useful to navigate before get_file' gives an implied workflow position and names one follow-up tool. There is no explicit guidance on when to pick this over search_in_repo or list_repos, and no stated exclusions.

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