Skip to main content
Glama

git_clone

Clone Gitopia repositories to create local copies for code reading or modification. Specify repository URL and local path, with optional branch selection and shallow cloning.

Instructions

Use this when you need a local copy of a Gitopia repository to read or modify code. Clones into a new workspace directory. Fails if target already exists. Requires 'repo_url' (gitopia://owner/repo or owner/repo) and 'local_path' (workspace-relative). Optional: 'branch' for a specific branch, 'depth' for shallow clone. See also: get_file_contents (for reading without cloning), bootstrap_repo (for new repos).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_urlYesgitopia:// URL or owner/name format
local_pathYesPath relative to workspace root
branchNoSpecific branch to clone
depthNoShallow clone depth
Behavior4/5

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

With no annotations provided, the description carries full burden and discloses key behavioral traits: 'Clones into a new workspace directory' (location side-effect) and 'Fails if target already exists' (idempotency/safety constraint). Minor gap in not describing return values or auth requirements.

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?

Efficiently structured with purpose first, followed by behavioral constraints, parameter requirements grouped by cardinality, and cross-references last. Every sentence conveys distinct information with no redundancy.

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?

For a 4-parameter file-system operation with no output schema and no annotations, the description adequately covers invocation prerequisites, failure modes, and sibling alternatives. Slight deduction for not clarifying what the tool returns upon success.

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%, establishing baseline 3. The description mirrors schema content (e.g., 'workspace-relative' vs schema's 'Path relative to workspace root') and organizes parameters into required/optional groups, but adds minimal semantic value beyond what the well-documented schema already provides.

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

Purpose5/5

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

The description opens with a precise purpose statement ('local copy of a Gitopia repository to read or modify code') using specific verb+resource, and distinguishes from siblings by contrasting with get_file_contents (for reading without cloning) and bootstrap_repo (for new repos).

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

Usage Guidelines5/5

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

Explicitly states when to use ('when you need a local copy...') and provides clear alternatives via 'See also' section, directing users to get_file_contents for non-cloning reads and bootstrap_repo for new repositories rather than existing ones.

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/gitopia/gitopia-mcp-server'

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