Skip to main content
Glama

ensure_fork

Creates a fork of the specified upstream repository if it doesn't already exist, then returns the fork slug and HTTPS clone URL for pull request automation.

Instructions

Ensure a fork exists for the given upstream_repo_slug.

The upstream repository must be allowed according to the configured
allowlist (via ``upstream_allowed``).  A fork will be created under the
authenticated user's account if it does not already exist.  The function
returns the fork slug (``username/repo``), the HTTPS clone URL, and
whether a new fork was created.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upstream_repo_slugYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly explains that the tool checks the allowlist, creates a fork under the authenticated user's account if missing, and returns the fork slug, clone URL, and creation flag. This gives a solid understanding of side effects and outputs, though it omits details like rate limits or permission specifics.

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 three well-structured sentences: the first states the core action, the second provides conditions, and the third lists return values. Every sentence earns its place with no redundancy or filler, making it highly concise and effectively 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 single-parameter tool with an output schema, the description is quite complete: it covers the action, prerequisites, side effects, and return values. However, it doesn't address the existence of the sibling tool github_ensure_fork, leaving potential ambiguity about which tool to select, which prevents a perfect score.

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?

The input schema has a single required string parameter with no description (0% coverage). The description compensates by explaining that it is the upstream repository slug, implies the 'owner/repo' format through the return value, and adds the allowlist constraint. This adds meaningful semantics beyond the raw schema.

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 ('Ensure a fork exists') and the target resource (upstream_repo_slug), making the purpose specific. However, it does not explicitly differentiate from the sibling tool 'github_ensure_fork', which appears to serve a similar function, so it loses a point for lack of sibling distinction.

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 when a fork is needed for an upstream repository and mentions the allowlist prerequisite, but it provides no explicit guidance on when to use this tool over alternatives like github_ensure_fork, nor does it state when not to use it. This leaves usage context implied rather than explicit.

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