Skip to main content
Glama

Protect tag

gitlab_protect_tag

Protect a GitLab project tag to restrict updates and deletion; specify the project ID and tag name.

Instructions

Protect a tag in a project.

Args: **kwargs: Additional parameters for the request (e.g., project_id, name).

Returns: Response: A wrapper containing the original response and a Tag model.

Raises: MissingParameterError: If the project_id or name is missing. ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
refNo
tagNo
pageNo
messageNo
per_pageNo
max_pagesNo
project_idNo
api_parametersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare that this is a non-read-only, non-destructive, non-idempotent, open-world mutation. The description adds some value by naming error classes and saying the return is a wrapper containing the original response and a Tag model, but it does not explain permissions, effects of protection, or why the operation is non-idempotent.

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 first sentence is front-loaded and the Args/Returns/Raises structure is easy to scan. The description is not bloated, though the generic '**kwargs' line adds little useful information and contains a parameter example that does not match the schema.

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?

For a mutation tool with 8 parameters, 0% schema description coverage, and no output schema, the description leaves too much unspecified. It briefly explains the return wrapper and error cases, but an agent still cannot determine correct parameter usage or the full behavioral implications of protecting a tag.

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

Parameters1/5

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

Schema description coverage is 0% for 8 parameters, and the description only mentions '**kwargs' with examples 'project_id, name.' That is misleading because 'name' does not appear in the schema, while key parameters such as tag, ref, page, per_page, max_pages, message, and api_parameters are undocumented.

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 gives a clear verb and resource: 'Protect a tag in a project.' This distinguishes it from unrelated siblings such as branch or project tools, but it does not explicitly differentiate from close siblings like gitlab_unprotect_tag or gitlab_get_protected_tag.

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 states what the tool does but gives no guidance on when to use it versus alternatives such as gitlab_unprotect_tag or gitlab_get_protected_tag. There are no prerequisites, exclusions, or context conditions mentioned.

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