Skip to main content
Glama

Fork Repository

gitlab_fork_repository

Fork an existing GitLab project into another namespace, with optional name, path, visibility, and default branch settings.

Instructions

Fork an existing project to another namespace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_fork_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
pathNo
namespaceNo
project_idNo
visibilityNo
descriptionNo
namespace_idNo
default_branchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.7.0
    • removedInput schema / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / namespace / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / namespace / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / path / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.6/5.0
Behavior2/5

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

The annotations already disclose that this is a non-read-only, non-idempotent, non-destructive, open-world mutation. The description adds no behavioral context beyond the purpose, such as permission requirements, whether the source project must be visible, or what happens on repeated calls.

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

Conciseness3/5

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

The single sentence is front-loaded and free of filler, which is structurally clean. However, for a tool with 8 undocumented parameters, this level of brevity is under-specification rather than effective conciseness.

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?

The description states the core operation but is far too sparse for an 8-parameter tool with no parameter descriptions and no output schema. An agent would have to infer which parameters are needed to identify the source project and target namespace.

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

Parameters2/5

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

There are 8 parameters with 0% schema description coverage, so the description must compensate but does not. The phrase 'another namespace' loosely hints at the namespace or namespace_id parameters, but it says nothing about project_id, name, path, visibility, description, or default_branch.

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 uses a specific verb and resource: 'Fork an existing project to another namespace.' This clearly distinguishes a fork operation from repository creation, but it does not explicitly differentiate from the sibling gitlab_create_repository tool.

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?

The description gives no when-to-use guidance, no prerequisites such as required source project access, and no conditions for choosing a fork over creating a new repository. Usage is only implied by the verb 'Fork'.

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

Deploy Server

Other Tools