Skip to main content
Glama

git_clone

Clone a Git repository into a new directory, with options for shallow, bare, or branch-specific cloning.

Instructions

Clone a repository into a new directory

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesRepository URL
directoryNoDestination directory (optional)
branchNoBranch to clone (optional)
depthNoCreate a shallow clone with history truncated to specified number of commits
bareNoCreate a bare repository
Behavior2/5

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

With no annotations, the description must disclose behavior. It only states the basic purpose, omitting important details such as that cloning creates a new directory, may be a shallow clone, or that it requires network access. No mention of potential side effects or prerequisites.

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 sentence that is front-loaded and direct. It is concise, but perhaps too brief given the complexity of the operation. Still, it conveys the core purpose without waste.

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 tool with 5 parameters and no output schema or annotations, the description is insufficient. It lacks context about the cloning process, potential time consumption, network requirements, and what the output (local directory) looks like. More detail is needed for effective use.

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?

All 5 parameters have descriptions in the schema (100% coverage), so the description adds no extra meaning. The description is minimal and does not elaborate on parameter usage beyond what the schema provides.

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 action (clone) and the resource (repository), which is a standard Git operation. It is distinct from sibling tools like git_init or git_checkout, but could be more explicit about what 'clone' entails versus other operations.

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 like git_init or git_pull. An agent would not know that cloning is for creating a local copy of a remote repository, or that other tools might be better for different scenarios.

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/proofmath-owner/ai-filesystem-mcp'

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