Skip to main content
Glama

sandbox_git_clone

Clone a GitHub repository into an E2B cloud sandbox. Supports private repos when a GITHUB_TOKEN is set. Specify the sandbox ID, repository URL, optional destination path, branch, and shallow clone depth.

Instructions

Clone a GitHub repository into a sandbox. Supports private repos when GITHUB_TOKEN is configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sandboxIdYesThe sandbox ID.
repoUrlYesGit repository URL (e.g., "https://github.com/user/repo").
pathNoClone destination path. Defaults to /home/user/repo.
branchNoBranch to clone. Defaults to the default branch.
depthNoShallow clone depth. Default: 1 for faster cloning. Set 0 for full history.
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses that cloning is writing to the sandbox and that private repos require GITHUB_TOKEN, but does not mention whether the operation is destructive or has side effects on existing files.

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?

The description is two concise sentences, each adding value. No wasted words, and key information is front-loaded.

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 cloning tool with a complete input schema and no output schema, the description covers essential purpose and a key constraint (private repo support). It lacks details on return values or error cases, but these are often implicit in clone operations.

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?

The input schema covers all 5 parameters with descriptions, so schema coverage is 100%. The description adds no additional parameter details beyond the schema, so baseline score of 3 is appropriate.

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 clearly states the specific action (clone a GitHub repository into a sandbox) and distinguishes it from other sandbox tools. It also mentions support for private repos, adding specificity.

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

Usage Guidelines3/5

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

The description implies usage for cloning into a sandbox and notes private repo support via GITHUB_TOKEN, but does not explicitly compare with similar tools like sandbox_git_init or sandbox_git_pull, nor provide when-not-to-use guidance.

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/asif-nvc/e2b-sandbox-mcp'

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