Skip to main content
Glama

git_clone

Clone a Gitopia repository to a new workspace directory for reading or modifying code. Provide the repo URL and local path. Optionally specify a branch or shallow clone depth. Fails if target already exists.

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
Behavior3/5

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

No annotations provided, so description carries full burden. It mentions the tool clones into a new workspace directory and fails if target exists, but lacks disclosure of authentication needs, side effects like fetching from remote, or rate limits.

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?

Two concise sentences plus a mention of alternatives, front-loading the purpose. No wasted words; every sentence serves a clear function.

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?

Covers purpose, usage, failure condition, and parameter details. Missing output information (e.g., what is returned on success) and side effects, but provides adequate context for a cloning tool given the sibling list.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds value by clarifying URL formats ('gitopia://owner/repo or owner/repo') and that local_path is workspace-relative. This enhances understanding beyond the schema.

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?

Description clearly states the verb 'clone' and resource 'repository', specifying it provides a local copy for reading or modifying code. It distinguishes from siblings by naming alternatives get_file_contents and bootstrap_repo.

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

Usage Guidelines4/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 alternatives for other cases. However, it doesn't explicitly list conditions when cloning should be avoided, though the alternatives imply them.

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