Skip to main content
Glama
MementoRC

MCP Git Server

by MementoRC

git_status

Check the status of a Git repository's working tree by providing the repository path. Track changes, untracked files, and branch information in a clear summary.

Instructions

Shows the working tree status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes

Implementation Reference

  • Core handler function that executes the git status command using GitPython's Repo.git.status(), with optional porcelain format.
    def git_status(repo: Repo, porcelain: bool = False) -> str:
        """Get repository status in either human-readable or machine-readable format.
    
        Args:
            repo: Git repository object
            porcelain: If True, return porcelain (machine-readable) format
    
        Returns:
            Status output string
        """
        if porcelain:
            return repo.git.status("--porcelain")
        else:
            return repo.git.status()
  • Pydantic input schema/model for the git_status tool, defining repo_path (required) and optional porcelain flag.
    class GitStatus(BaseModel):
        repo_path: str
        porcelain: bool = False
  • ToolDefinition registration in the central ToolRegistry, associating name 'git_status', schema GitStatus, category GIT, and placeholder handler (later overridden). Also defines GitTools.STATUS = "git_status" enum at line 19.
    ToolDefinition(
        name=GitTools.STATUS,
        category=ToolCategory.GIT,
        description="Show the working tree status",
        schema=GitStatus,
        handler=placeholder_handler,
        requires_repo=True,
    ),
  • Handler wiring in CallToolHandler._get_git_handlers(): maps "git_status" to a wrapped git_status function from git.operations, imported at lines 40-61, and registers via router.set_handlers.
    "git_status": self._create_git_handler(git_status, requires_repo=True),
    "git_diff_unstaged": self._create_git_handler(
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. 'Shows the working tree status' implies a read-only operation, but doesn't specify what information is included (staged vs unstaged changes, untracked files, branch information), the output format, or any limitations. This is inadequate for a tool with zero annotation coverage.

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 extremely concise at just four words, with zero wasted language. It's front-loaded with the essential purpose and doesn't include any unnecessary elaboration or repetition.

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

Completeness2/5

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

For a git status tool with no annotations, no output schema, and 0% parameter documentation, the description is insufficient. It doesn't explain what 'working tree status' includes, how results are presented, or provide any context about the single required parameter. The description should do much more given the complete lack of structured documentation.

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?

With 0% schema description coverage for the single parameter 'repo_path', the description provides no additional parameter information. It doesn't explain what 'repo_path' should contain (absolute path, relative path, repository identifier) or provide any examples. The description fails to compensate for the complete lack of schema documentation.

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 clearly states the verb ('shows') and resource ('working tree status'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like git_diff_staged or git_diff_unstaged, which also show status information about different aspects of the repository.

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. With multiple git status-related tools available (git_diff_staged, git_diff_unstaged, git_diff), there's no indication of what makes this tool distinct or when it should be preferred over those siblings.

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

Related 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/MementoRC/mcp-git'

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