Skip to main content
Glama
google-seo-mcp
by Akxan

List a directory in GitHub

github_list_dir
Read-onlyIdempotent

Lists files and folders at a specified path in a GitHub repository, returning names, types, sizes, and SHAs for directory inspection.

Instructions

List files and folders at a path in a repository (name, type, size, sha).

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": "github_list_dir"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
pathNo
repoYesRepository as 'owner/name', e.g. 'octocat/my-site'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed1 schema field changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv0.3.0

TDQS

B3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered externally. The description adds useful behavioral context by enumerating the returned fields (name, type, size, sha), but says nothing about pagination, recursion, or how empty/missing paths behave.

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 front-loaded sentence with no wasted wording, and the return fields are packed into a tight parenthetical. The terseness costs a little clarity on path/ref semantics, but structurally it is efficient.

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?

With no output schema, the description helpfully enumerates the returned fields, which is the right call for a 3-parameter list tool. However, it leaves the 'ref' parameter and the root-path default unexplained, so an agent could not reliably call it for a non-default branch or ambiguous path.

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 only 33%: only 'repo' is documented in the schema, while 'ref' and 'path' are bare. The description touches 'path' only obliquely and never explains that it defaults to the repository root, nor does it mention 'ref' (branch/commit/tag) at all, so it fails to compensate for the low coverage.

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?

Uses a specific verb-plus-resource ('List files and folders at a path in a repository') and even names the return fields (name, type, size, sha), so the agent knows exactly what operation this performs. It does not explicitly distinguish itself from nearby siblings such as github_get_file or github_search_code, which keeps it below a 5.

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 states what it does but never says when to prefer it over github_get_file, github_search_code, or github_commit_files, nor any prerequisites or exclusions. Usage is only implied by the phrase 'at a path'.

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