Skip to main content
Glama
Hemanth-hexo

GitHub Discovery MCP Server

by Hemanth-hexo

get_repo_structure

Browse a GitHub repository's directory listing one level at a time, from root to nested subfolders, to inspect file and folder structure.

Instructions

List the files and folders at a path inside a repo, like browsing a file tree one level at a time. Start with no path to see the root, then call again with a subdirectory's path (e.g. 'src') to go deeper.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoDirectory path inside the repo, e.g. 'src/utils'. Omit for the repo root.
repoYesRepo as 'owner/name' (e.g. 'facebook/react') or a GitHub URL — usually copied straight from a search result.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It explicitly discloses that listing is one level at a time, that omitting path returns the root, and that repeated calls navigate deeper. It does not mention output formatting, ordering, or edge cases, but the core behavior is transparent.

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?

Two concise sentences front-load the core action and then give the key usage pattern. Every sentence earns its place; there is no redundant or filler content.

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

Completeness4/5

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

For a relatively simple browsing tool with complete schema description and no output schema, the description is nearly sufficient. It explains how to start and how to go deeper, though it could be slightly more explicit about what the returned listing contains beyond 'files and folders'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds value beyond the schema by explaining path semantics ('Start with no path to see the root') and providing an example ('src'), which helps the agent correctly omit or supply the path parameter.

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 folders at a path inside a repo'), and distinguishes this tool from sibling tools by describing directory-structure browsing rather than file content or branch listing. The file-tree analogy makes the purpose immediately understandable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear practical guidance: start at the root by omitting path, then call again with a subdirectory path to go deeper. It does not explicitly compare against alternatives like get_file_content or list_branches, but the step-by-step usage context is strong and unambiguous.

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

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/Hemanth-hexo/Git_mcp'

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