Skip to main content
Glama
archish9

GitHub MCP Server

by archish9

get_repo_status

Check git repository status to view current branch, uncommitted changes, and staged/modified/untracked files before committing.

Instructions

Get the current status of the git repository.

This tool provides a snapshot of the repository's state, including:

  • Initialization status (is it a git repo?)

  • Current branch name

  • Whether there are uncommitted changes

  • Lists of staged, modified, and untracked files

Use this tool before committing to verify what changes will be included, or to simply check the current context (branch, pending changes).

Args: repo_path: The absolute path to the repository.

Returns: A JSON-formatted string containing the repository status details.

Example JSON structure:
{
  "is_initialized": true,
  "current_branch": "main",
  "has_changes": true,
  "staged_files": ["file1.py"],
  "modified_files": ["file2.py"],
  "untracked_files": ["new_file.py"]
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by explaining what information is returned (initialization status, branch name, change status, file lists) and the JSON format. It doesn't mention error conditions, performance characteristics, or authentication needs, but provides substantial behavioral context for a read-only tool.

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?

The description is well-structured with clear sections: purpose statement, bulleted list of what's included, usage guidelines, parameter documentation, return format, and example. Every sentence adds value with no redundancy or fluff. The information is front-loaded with the most important details first.

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

Completeness5/5

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

Given the tool's moderate complexity (single parameter, read-only operation), no annotations, but with output schema (implied by the example JSON), the description provides comprehensive context. It covers purpose, usage, parameters, return format, and example output, making it complete enough for an agent to understand and use the tool effectively.

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?

The description explicitly documents the single parameter 'repo_path' with clear semantics ('The absolute path to the repository'), compensating for the 0% schema description coverage. While it doesn't elaborate on path format requirements or validation, it provides essential context beyond the bare schema.

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 clearly states the tool's purpose with specific verb ('Get') and resource ('current status of the git repository'), and distinguishes it from siblings by specifying it provides a 'snapshot' of repository state rather than performing operations like committing, branching, or comparing. It explicitly lists what information is included in the status report.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'before committing to verify what changes will be included' and 'to simply check the current context (branch, pending changes).' It implicitly distinguishes from siblings by focusing on status checking rather than mutation operations like commit_all_changes or create_branch.

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/archish9/VersionControlHelperMCP'

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