Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_clone

Clone a Git repository from a URL to a local path so assistants can inspect and manage the codebase.

Instructions

Clone a repository from a URL

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": {
      "url": "<url>"
    },
    "name": "git_clone"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL of the repository to clone
repoPathNoBase path for the clone operation (defaults to current directory)
targetPathNoThe path where to clone the repository

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing: it does not say whether it creates directories on disk, what happens if the target path is non-empty, whether private repositories need authentication, or whether the clone is shallow/full. Only the bare action is conveyed.

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. It is efficient, though the brevity comes at the cost of the behavioral detail an unannotated mutation tool needs.

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?

Incorrect value in this position would be misleading; the description is incomplete rather than excessive. For a filesystem-mutating tool with zero annotations and no output schema, an agent still lacks failure-mode and side-effect information.

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%, so url, repoPath, and targetPath are already documented in the schema with defaults noted. The description adds no extra meaning about their interaction—for example, how repoPath relates to targetPath when both are supplied.

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?

States a specific verb ('Clone') and resource ('a repository from a URL'), which is enough to separate it from git_init or git_remote_add by intent. It does not explicitly name which sibling to prefer for an already-cloned repo, so it stops short of full differentiation.

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?

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites (empty target, network access, credentials), and no routing to alternatives such as git_init for creating a new repo or git_pull/git_fetch for updating an existing clone.

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