Skip to main content
Glama

update_label

Update an existing GitLab project label by changing its name, color, description, or priority. Provide project and label identifiers to apply modifications directly to remote state.

Instructions

Update an existing label in a project. Use this for an existing resource; choose the corresponding create tool for a new resource and a note tool for discussion-only text. It changes remote GitLab state and requires the necessary project or group permission; GitLab returns validation, conflict, permission, or rate-limit errors instead of silently applying an invalid request. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorNoThe color of the label given in 6-digit hex notation with leading '#' sign
label_idYesThe ID or title of a project's label
new_nameNoThe new name of the label
priorityNoThe new priority of the label
project_idYesProject ID or URL-encoded path
descriptionNoThe new description of the label

Schema Changelog

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

  1. Addedv2.1.45
  2. Removedv2.1.43
  3. Addedv2.1.18
  4. Removedv2.1.14
  5. Addedv2.1.11
  6. Removedv2.1.10
  7. Changed2 schema fields changedv2.1.9
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / required
      Added value: +[
      +  "project_id",
      +  "label_id"
      +]
  8. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only include openWorldHint=true, which is low-signal for behavior. The description compensates by disclosing that the tool changes remote GitLab state, requires permissions, and that GitLab returns validation/conflict/permission/rate-limit errors instead of silently applying invalid requests. This adds behavioral context beyond the annotation. A small deduction for not detailing reversibility or partial updates, but it covers the main operational safety and error behavior.

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?

The description is three sentences, tightly packed with essential operational details: what it updates, when to use it, permissions, error behavior, and parameter conventions. No redundancy, and the key purpose is front-loaded. Every sentence adds value.

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 mutation tool with 6 parameters and no output schema, the description covers usage boundaries, permissions, error responses, and parameter conventions. It lacks details on the response format (which the output schema would otherwise provide) and doesn't describe the return behavior of the updated label, but given the absence of an output schema, the error-handling and permission guidance are strong. A 4 is justified since a tool this complex could benefit from a note on side effects or idempotency, but the core agent needs are met.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents all parameters. The description adds the distinction between accepting numeric ID or URL-encoded path for project_id/group_id, and warns to use required identifiers and pagination fields exactly as documented. This adds a small layer of semantic guidance on top of the schema, but most meaning is already in the schema. Baseline 3, with a bump for the ID/path and pagination note.

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 states a specific verb ('Update') and resource ('an existing label in a project'), which distinguishes it clearly from sibling tools like create_label and delete_label. It also clarifies the difference between labels and notes, which helps select the right tool among similar update/create/delete siblings.

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?

Provides explicit guidance on when to use this tool: for an existing resource, choosing the create tool for new resources and a note tool for discussion-only text. It also mentions permission requirements and how GitLab returns errors, which informs the agent when to expect failure. This is explicit when/when-not guidance.

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