Skip to main content
Glama

Gitea: Fork repository

gitea_fork_repository
Destructive

Fork a Gitea repository to your user account or a specified organization, and optionally rename the new fork. Use it to copy repositories for independent development or collaboration.

Instructions

[UNIFIED] Fork a Gitea repository. Without organization, forks under the calling user. name optionally renames the fork.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "gitea_fork_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
repoYes
siteYes
ownerYes
organizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.14.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false-style safety profile is absent here (it sets destructiveHint=true and idempotentHint=false), so the bar is lower; the description still adds two non-obvious behavioral facts: the fork's default destination account and the fact that ``name`` renames the resulting fork. It does not address what happens if a fork already exists (relevant given idempotentHint=false) or any permission requirements, which keeps it from a 5.

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?

Two short sentences, front-loaded with the operation and followed by the two behavioral qualifiers. No preamble, no restatement of the title, nothing that could be cut.

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

Completeness3/5

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

For a five-parameter mutation with no output schema and no parameter descriptions, the definition leaves gaps: the identity of the source (site/owner/repo), the response shape, and the existing-fork case are all unaddressed. It is adequate to invoke the tool on the happy path but not complete for a non-idempotent, non-read-only operation.

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 compensate, and it only does so for two of five parameters (``organization`` default and ``name`` rename semantics). ``site``, ``owner`` and ``repo`` are left entirely to the schema, which provides no descriptions at all, so meaning is only partly filled in.

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?

"Fork a Gitea repository" is a specific verb+resource that cannot be confused with create_repository, update_repository or get_repository in the sibling list. The target server/owner/repo framing is implicit in the verb, but the description never explicitly contrasts forking with creating a new repo, so it stops short of a 5.

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?

It gives one conditional routing rule (omit ``organization`` to fork under the calling user), which is really a default-behavior statement rather than when-to-use guidance. It never states prerequisites such as needing read access to the source repo, nor when an agent should prefer create_repository over forking; usage is implied rather than spelled out.

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