Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_init

Creates a new Git repository at a specified path or the current directory, giving assistants the version control setup needed before committing, branching, or pushing code.

Instructions

Initialize a new git repository

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_init"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoPathNoPath where to initialize the repository (defaults to current directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden and falls short. It does not say what happens if a repository already exists at the path, whether existing files are affected, or what the call returns on success or failure.

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 zero filler, which is proportionate to a one-parameter tool. It is efficient, though the brevity contributes to the behavioral gaps noted elsewhere.

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 single-parameter tool with full schema coverage and no output schema, the core information is present. However, with no annotations and no statement about existing-repo behavior or return value, an agent cannot predict the outcome of edge cases.

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 100% and the single repoPath parameter is documented including its default, so the schema does the heavy lifting. The description adds nothing beyond that, which meets the baseline for full schema 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?

The description states a specific verb and resource ('Initialize a new git repository'), which clearly identifies the operation. The word 'new' implicitly separates it from git_clone, but no sibling is named explicitly, so differentiation is left to inference.

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

Usage Guidelines3/5

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

Usage is only implied: 'Initialize a new' suggests this is for starting a fresh repo rather than an existing one. It never states when to use git_clone instead, nor any preconditions such as whether the target directory must be empty.

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