Skip to main content
Glama

git_clone

Clone a Git repository from a URL into a specified local path, with an optional branch selection.

Instructions

Clone Git repositories

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
urlYesGit repository URL
pathNoLocal directory to clone into.
branchNoBranch to clone

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.1/5.0
Behavior1/5

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

With no annotations and a three-word description, the agent is told nothing about behavior: no mention of authentication for private repositories, whether an existing target path causes failure or overwrite, clone depth, or what the result of the call is. For a mutating operation that writes a directory to disk, this is a serious gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The phrase is front-loaded and free of waste, but its brevity comes at the cost of substance rather than from efficient encoding of meaning. There is simply not enough content for structure to matter.

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 three-parameter, side-effecting tool with no annotations and no output schema, the definition omits the information an agent most needs: permission and credential requirements, target-directory conflict behavior, and any indication of success/failure semantics. It is not adequate to call the tool reliably without trial and error.

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 description coverage is 100%, so url, path, and branch are each documented in the schema itself, and the description adds no further semantics such as accepted URL formats, authentication embedding, or branch fallback behavior. Baseline 3 applies when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Clone Git repositories" names a specific verb and resource, so the basic action is unambiguous. However, it is essentially a restatement of the tool name and does nothing to distinguish it from the sibling download_url or download_scp tools, which an agent could easily confuse with a repository clone.

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

Usage Guidelines1/5

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

The description gives no guidance on when to clone versus downloading via URL or SCP, no prerequisites (git installed, network access, credentials for private repos), and no exclusions. Nothing helps an agent choose this tool over its siblings.

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

Deploy Server

Other Tools