Skip to main content
Glama
Haavi97

GitHub Context MCP Server

by Haavi97

list_files

Retrieve the list of files and folders at any directory in a GitHub repo. Specify owner/repo, a path, and optionally a branch or commit to explore the codebase.

Instructions

List files and directories at a given path inside a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoDirectory path inside the repo (default: root "").
repoYesRepository in "owner/repo" format.
branchNoBranch, tag, or commit SHA (default: repo default branch).
Behavior3/5

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

With no annotations, the description itself must convey behavior. The verb 'list' clearly indicates a non-mutating read operation, but the description does not mention recursion, hidden files, error handling, or permissions, so transparency is only partial.

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?

One focused sentence states the core function with no filler. It is appropriately concise for a simple tool.

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?

The tool is simple and the schema is complete, but the description lacks usage alternatives and any detail about return shape or edge behavior. It is minimally sufficient but not comprehensive.

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 coverage is 100% for all three parameters, so the schema already documents path, repo, and branch. The description adds no additional meaning beyond the schema's own parameter descriptions.

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?

The description uses a specific verb ('List') and a clear resource ('files and directories') with a scope ('at a given path inside a repository'). This distinguishes it from sibling tools such as list_repos, get_file, and search_code.

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?

The description provides no guidance on when to use this tool versus alternatives like get_file or search_code. It only states the action, leaving the agent to infer usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Haavi97/github-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server