Skip to main content
Glama

repo_setup_remotes

Clone a GitHub fork and configure upstream remote for pull request workflows. Automates fork setup by adding upstream, fetching changes, and checking out the base branch.

Instructions

Clone the user's fork and add the upstream remote.

This helper encapsulates the recommended cloning workflow for a fork-based
contribution flow:
1. Clone the fork into repo/
2. Add upstream remote
3. Fetch upstream
4. Checkout base branch tracking upstream

All operations happen inside E2B sandbox.
Both fork and upstream URLs must be in the allowlist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fork_urlYes
base_branchNomain
upstream_urlYes
workspace_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It adds useful context: all operations happen inside the E2B sandbox, and URLs must be allowlisted. However, it doesn't disclose potential side effects like overwriting an existing repo/ directory or whether the operation is destructive, which is a gap given the mutations involved.

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 efficiently organized: a one-sentence summary followed by a numbered list of steps and two constraints. Every sentence adds value, with no filler or repetition.

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?

Given the moderate complexity with 4 parameters and an output schema, the description adequately covers the workflow, sandbox context, and allowlist constraint. It lacks details about edge cases (e.g., what happens if the repo already exists), but the output schema likely covers return values, keeping this complete enough for typical 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?

Schema description coverage is 0%, so the description must clarify parameters. It directly maps fork_url and upstream_url, and mentions 'base branch tracking upstream' for base_branch. Workspace_id is implied by 'inside E2B sandbox' but not explicitly tied. The description adds some meaning but not enough to fully compensate for the lack of schema descriptions.

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 tool's action: 'Clone the user's fork and add the upstream remote.' It lists the exact steps, distinguishing it from sibling tools like repo_clone or repo_add_remote by framing it as a helper that encapsulates the full fork-based workflow.

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?

The description identifies when to use it: 'recommended cloning workflow for a fork-based contribution flow.' It also notes the allowlist constraint. It doesn't explicitly warn against using individual sibling tools, but the context implies this is the all-in-one helper.

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/saakshigupta2002/PR_Orchestrator_MCP'

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