Skip to main content
Glama

Unprotect branch

unprotect_branch
Destructive

Remove branch protection in GitLab after reading the current policy and explicitly acknowledging the destructive governance change.

Instructions

Remove protected-branch policy only after reading the current policy and explicitly acknowledging the destructive governance change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
projectYesGitLab project ID or full path such as group/project.
acknowledge_protection_changeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesGitLab response normalized for model use.
Behavior4/5

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

Annotations already declare destructiveHint: true, but the description adds critical behavioral context: the requirement to read current policy first and explicitly acknowledge the change. It labels it a 'destructive governance change,' reinforcing the annotation and giving the agent a safety protocol. No contradiction with annotations.

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?

A single sentence with zero wasted words. The primary action is front-loaded ('Remove protected-branch policy'), and the safety condition is appended concisely. Perfectly scoped.

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?

Given the tool's simplicity and the presence of an output schema, the description adequately covers the essential context: the destructive nature, the prerequisite read, and the acknowledgment requirement. It doesn't detail irreversibility or downstream effects, but these are less critical for a straightforward unprotect operation.

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?

Schema description coverage is only 33% (only 'project' is described). The description does not explain the 'name' or 'acknowledge_protection_change' parameters. While the word 'acknowledging' hints at the boolean, it is not explicit parameter documentation. With low coverage, the description should compensate but does not.

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 'Remove protected-branch policy' – a specific verb ('Remove') and resource ('protected-branch policy'). It distinguishes from sibling tools like protect_branch (opposite), update_protected_branch (modify), and get_protected_branch (read). The safety qualifier adds scope without confusing the core purpose.

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

Usage Guidelines4/5

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

The description provides explicit usage prerequisites: 'only after reading the current policy and explicitly acknowledging the destructive governance change.' This implies reading with get_protected_branch first and setting acknowledge_protection_change to true. It does not name explicit alternatives or exclusions, but the context is clear for a destructive action.

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

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