Skip to main content
Glama
aviz92

GitHub Plus MCP Server

by aviz92

github_list_directory

Read-only

List files and folders in a GitHub repository directory, with optional path and ref, to inspect repository structure and locate files.

Instructions

List a directory ("" is the repo root).

Input Schema

NameRequiredDescriptionDefault
refNoBranch, tag or commit sha. Defaults to the repo's default branch.
pathNo
repoNoRepository as 'owner/name'. Defaults to GITHUB_MCP_DEFAULT_REPO when omitted.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds only the root-path convention and says nothing about pagination, recursive vs non-recursive listing, or large-directory behavior, leaving behavioral gaps beyond the annotations.

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?

A single short sentence with no wasted wording, front-loading the core action. It errs toward under-specification rather than verbosity.

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?

For a simple read-only directory listing with an output schema and annotations, the essentials are present, but the description omits whether listing is one level deep and how large directories are handled. These are meaningful gaps for correct invocation.

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 67%; ref and repo are documented inline, but path has no schema description. The description compensates by defining path's empty-string meaning as the repo root, but it does not explain path formatting or whether nested paths are supported.

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 states a specific verb and resource ("List a directory") and clarifies the root-path convention. It is clear what the tool does, but it does not differentiate itself from siblings such as github_get_file or explain depth (single-level vs recursive).

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?

There is no explicit guidance on when to use this versus github_get_file or the other listing tools, and no exclusions or prerequisites. The intended use is only inferable from the tool name.

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