Skip to main content
Glama

unprotect_branch

Destructive

Remove branch protection to allow direct pushes and merges. Use when a protected branch no longer needs safeguard restrictions.

Instructions

Remove protection from a previously protected branch. Use this to remove protection from an existing branch; use protect_branch to change access levels without removing the rule. The operation changes repository security controls, requires permission to manage protected branches, and returns the result or an error when the branch is missing or policy forbids the change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID or complete URL-encoded path to project
branch_nameYesName of the protected branch to unprotect

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv2.1.21

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive and open-world behavior, but the description goes further by specifying the nature of the change ('changes repository security controls'), the permission requirement, and error scenarios ('missing branch or policy forbids the change'). This adds value beyond the annotations and fully prepares the agent for side effects and failure modes.

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?

The description is compact at three sentences, front-loaded with the core action. However, there is minor redundancy: the first and second sentences both express 'remove protection from a previously/existing branch.' This slight repetition could be tightened without losing meaning, but it remains efficient overall.

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 simple two-parameter tool with no output schema, the description covers key aspects: the operation's purpose, permission requirements, and possible failure outcomes. It does not specify the exact success return value, but the mention of 'returns the result or an error' is adequate for an agent to call it correctly. The description is sufficiently complete for this tool's 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%, with both parameters (project_id and branch_name) already well-documented. The description adds no additional parameter semantics, but per the baseline rule for high schema coverage, a score of 3 is appropriate. The description does not need to repeat what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: 'Remove protection from a previously protected branch.' It distinguishes from the sibling 'protect_branch' by explicitly noting that protect_branch changes access levels rather than removing the rule. This gives an agent a precise mental model of what the tool does without ambiguity.

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

Usage Guidelines5/5

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

The description explicitly instructs when to use it ('Use this to remove protection from an existing branch') and when not to ('use protect_branch to change access levels without removing the rule'). It also warns that permission to manage protected branches is required, providing clear preconditions for invocation.

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/zereight/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server