Skip to main content
Glama

Link a git repository

link_git_repo
DestructiveIdempotent

Keeps the code on GitHub or GitLab: a push to the default branch deploys production, a pull or merge request opens a preview; unlink removes the link.

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": "link_git_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNo"owner/name" (GitHub) or "group/project" (GitLab).
forgeNoThe repository's forge.
tokenNoAccess token for the forge; it goes to the vault.
unlinkNotrue: removes the link and the webhook.
projectNoThe project.
base_urlNoAddress of a self-hosted GitLab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description still adds real value by disclosing the automation triggered on link (production deploy on default-branch push, preview on PR/merge request). It also states that unlink removes the link, aligning with the destructive hint. It does not mention that the token is stored in a vault, permission/scope needs, or whether re-linking is safe, but the key side effects are covered.

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 semicolon-delimited sentence covers linking effects and unlinking with no filler. The opening 'Keeps the code on GitHub or GitLab' is slightly indirect as a lead, but the behavioral facts are front-loaded and nothing is redundant.

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

Completeness5/5

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

Assess completeness relative to tool complexity.

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%, so every one of the six parameters is already documented in the schema, which sets the baseline at 3. The description only touches the unlink flag ('unlink removes the link'), which largely repeats the schema's own wording and adds no new meaning about repo, forge, token, project, or base_url.

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 names the resource (a GitHub/GitLab repository) and describes the concrete effect of linking: push to default branch deploys production, PR/MR opens a preview, and unlink removes the link. The core verb 'link' is only carried by the title, but the effect statement makes the purpose unmistakable and no sibling tool covers repo-to-deploy wiring.

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?

Usage is implied by the described effects (you use this when you want pushes/PRs to drive deploys or previews), and the unlink clause hints at the removal case. There is no explicit when-to-use/when-not guidance, no prerequisites (forge auth, existing project), and no pointer to alternatives such as create_preview or deploy_app for manual flows.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources