Skip to main content
Glama

create_label

Create a GitLab project label with a name, color, and optional description to organize and filter issues and merge requests.

Instructions

Create a project label with color and description

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the label (e.g. 'qa-verified' or 'high-priority')
colorYesColor hex code starting with # (e.g. '#4287f5' or '#e11d48')
project_idYesProject numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically.
descriptionNoExplanation of what this label represents

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for a mutation tool. It doesn't disclose whether creation is idempotent, what happens on a duplicate label name, what permissions are required, or what the call returns when it succeeds.

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, front-loaded sentence with no filler or redundancy. It is appropriately sized, though it is arguably too terse to be fully useful rather than padded.

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

Completeness3/5

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

For a simple four-parameter create tool with full schema coverage and no output schema, the description is minimally viable: the parameters are covered by the schema. The gaps are behavioral (duplicate handling, permissions, success response), which matter more given there are no annotations.

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 all four parameters (including format examples for color hex and project_id) are already documented in the schema. The description names color and description but adds no syntax or constraint detail beyond it, so the baseline 3 applies.

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 specific verb ('Create') and resource ('project label') and names the attributes involved, so an agent can distinguish it from the sibling list_labels without opening the schema. It doesn't explicitly note that it is the write counterpart of list_labels, but the intent is unambiguous.

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?

There is no when-to-use guidance, no mention of prerequisites, and no reference to alternates such as list_labels or how to proceed if the label already exists. The agent is left to infer that this is the creation path for labels.

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