Skip to main content
Glama

fork_repository

Copy a GitLab project into your personal or group namespace. Create an independent fork by specifying the source project ID and optional target name, path, or namespace.

Instructions

Fork a project into a user or group namespace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew project name for the fork
pathNoNew project path/slug for the fork
namespaceNoTarget namespace name, path, or ID to fork into (defaults to your personal namespace)
project_idYesProject numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose that forking is a mutating, permission-gated operation, whether it is synchronous, whether the source project must be readable, or what defaults apply when namespace is omitted (the schema hints at a personal-namespace default, but the description adds nothing).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. It is efficient, though its brevity borders on under-specification for a four-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description is the only source of behavioral context, yet it omits permissions, error conditions, naming defaults, and what the fork returns. For a create-style operation this leaves substantial gaps.

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 100%, with each of the four parameters documented (name, path, namespace, project_id). The description's 'user or group namespace' phrasing duplicates the namespace parameter's documented default rather than adding new semantics, so the baseline 3 is appropriate.

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?

States a specific verb (fork) and resource (project) plus the target scope (user or group namespace), which cleanly distinguishes it from create_repository and update_project. It does not, however, explicitly differentiate itself from sibling repository-creation tools beyond the word 'fork'.

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

Usage Guidelines2/5

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

There is no guidance on when to fork versus call create_repository, no prerequisites such as required access level on the source project, and no mention of what happens if the fork name or path collides. The agent must infer all usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.