Skip to main content
Glama

Create tag

gitlab_create_tag

Create a tag in a GitLab project by specifying the project ID and tag name, optionally with a reference and message.

Instructions

Create 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.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation/write nature is covered; the description adds real value by disclosing that MissingParameterError is raised for missing project_id or name and that the return is a wrapper containing a Tag model. It does not mention permission requirements, idempotency behavior on an existing tag, or that the extra pagination parameters (page, per_page, max_pages) are inert for a create call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in one short sentence, but the rest is raw docstring boilerplate with an unhelpful "**kwargs: Additional parameters for the request" line that is both vague and redundant with the explicit schema. The Raises/Returns blocks earn their place more than the Args block does.

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 an 8-parameter mutation tool with no output schema and zero schema description coverage, the description is thin: it explains the return wrapper but not what ref or message do, what happens if the tag exists, or what access level is needed. An agent could plausibly call it with only project_id and no tag reference and get an error it could have been warned about.

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 0% across 8 parameters, so the description must compensate and largely fails: it names only project_id and "name", and the latter does not exist in the schema, which uses "tag" and "ref". Key parameters that determine the actual result — ref (source branch/SHA), tag, message — are left completely unexplained, risking a mis-invocation with an incorrect or missing ref.

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 first sentence gives a specific verb and resource ("Create a tag in a project"), which is enough to distinguish it from the read/delete siblings such as gitlab_get_tags and gitlab_delete_tag. It stops short of naming those alternatives explicitly, so it is clear but not sibling-differentiated.

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 never says when to use this tool versus gitlab_create_branch, gitlab_get_tag, or a generic api_request, and gives no prerequisites such as required permissions or whether the tag must not already exist. The only conditional guidance is the error list, which describes failure modes rather than usage context.

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