Logros
Un grupo o un proyecto define un logro, y concedérselo a una persona crea un logro de usuario: un registro aparte, con su propio ID numérico, que se puede revocar, ocultar de un perfil, reordenar o borrar sin tocar el logro del que procede. Por eso estas acciones manejan dos identificadores: achievement_id nombra el logro y user_achievement_id nombra una concesión de él, que es lo que reciben achievement.revoke y las acciones achievement.user_achievement_*.
Revocar una concesión la conserva en el registro marcada como revocada, achievement.user_achievement_delete borra una concesión y achievement.delete elimina el logro con todas las concesiones hechas de él. Los logros están disponibles de forma general desde GitLab 19.3; en una instancia anterior un administrador tiene que activar antes el feature flag achievements.
Preguntas de ejemplo
Sección titulada «Preguntas de ejemplo»- “¿Qué logros define el grupo platform?”
- “Concede el logro First Contribution al usuario 42”
- “¿Quién tiene el logro First Contribution?”
- “Oculta esa concesión de mi perfil”
Cómo llamarlo
Sección titulada «Cómo llamarlo»- Dinámica, la superficie predeterminada: llama a
gitlab_execute_actionconactionigual al ID de la acción, comoachievement.award, y sus parámetros enparams.gitlab_find_actionencuentra un ID a partir de una descripción de la tarea. - Meta (
GITLAB_MCP_TOOL_SURFACE=meta): llama agitlab_achievementconactionigual al nombre de la acción, comoaward, y sus parámetros enparams. - Individual (
GITLAB_MCP_TOOL_SURFACE=individual): llama a la herramienta propia de la acción, comogitlab_achievement_award, pasándole directamente sus parámetros.
Disponibilidad
Sección titulada «Disponibilidad»Todos los niveles sirven el grupo completo, tanto en instancias autogestionadas como en GitLab.com.
Acciones de solo lectura: 4 de 12, las que conserva un despliegue en modo de solo lectura. A un token con read_api y sin api se le sirven 4 de las 12.
Acciones
Sección titulada «Acciones»La descripción de cada acción, y la de cada uno de sus parámetros, es el texto que sirve el servidor para ella en la superficie predeterminada, citado tal cual; por eso está en inglés. Las líneas de token dicen lo que exige GitLab 19.6.1 a un token para las peticiones que envía cada acción; en una instancia con Admin Mode activado, una acción que solo puede ejecutar un administrador necesita además admin_mode. Una acción destructiva solo se ejecuta una vez confirmada, salvo que GITLAB_MCP_YOLO_MODE (o AUTOPILOT) se salte ese paso: la superficie dinámica necesita confirm: true en gitlab_execute_action, y las otras dos aceptan un parámetro confirm o la pregunta del cliente (Acciones destructivas).
| Acción | Individual |
|---|---|
achievement.award |
gitlab_achievement_award |
achievement.create |
gitlab_achievement_create |
achievement.delete |
gitlab_achievement_delete |
achievement.list |
gitlab_achievement_list |
achievement.recipients |
gitlab_achievement_recipients |
achievement.revoke |
gitlab_achievement_revoke |
achievement.unique_users |
gitlab_achievement_unique_users |
achievement.update |
gitlab_achievement_update |
achievement.user_achievement_delete |
gitlab_achievement_user_achievement_delete |
achievement.user_achievement_reorder |
gitlab_achievement_user_achievement_reorder |
achievement.user_achievement_update |
gitlab_achievement_user_achievement_update |
achievement.user_list |
gitlab_achievement_user_list |
achievement.award
Sección titulada «achievement.award»Award an achievement to a user. Returns: the new award with its own id, achievement_id, user_id, awarded_by_user_id, award_message, priority, show_on_profile, and timestamps. See also:
achievement.revoke,achievement.recipients,achievement.user_list.
- Meta-herramienta:
gitlab_achievement, acciónaward - Herramienta individual:
gitlab_achievement_award - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Award en grupo; Achievement: Read en usuario; User: Read en usuario; se sirve vacío:
achievementsAward { userAchievement { revokedByUser } }(sin User: Read en usuario) (página de permisos) - Comportamiento: escribe, no idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
achievement_id |
integer |
sí | Numeric ID of the achievement to hand out |
user_id |
integer |
sí | Numeric ID of the user receiving the achievement |
award_message |
string |
no | Note shown alongside the award, up to 200 characters |
achievement.create
Sección titulada «achievement.create»Define a new achievement in a group or project namespace. Creating one awards it to nobody. Returns: the created achievement with id, namespace_id, name, description, avatar_url, and timestamps. See also:
achievement.award,achievement.list,achievement.update.
- Meta-herramienta:
gitlab_achievement, accióncreate - Herramienta individual:
gitlab_achievement_create - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Create en grupo; se sirve vacío:
achievementsCreate { achievement { namespace } }(sin Namespace: Read en proyecto o grupo o usuario) (página de permisos) - Comportamiento: escribe, no idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
name |
string |
sí | Display name of the achievement such as First Contribution |
namespace_id |
integer |
sí | Numeric ID of the group or project namespace that will own the achievement |
avatar_content_base64 |
string |
no | Base64-encoded avatar image bytes. Alternative to avatar_file_path. Only one of the two should be provided |
avatar_content_type |
string |
no | MIME type of the avatar image such as image/png. Defaults to application/octet-stream when omitted |
avatar_file_path |
string |
no | Absolute path to a local image file the MCP server reads. Alternative to avatar_content_base64 for files too large to base64-encode. Only one of the two should be provided, and neither is available when the server is reached over HTTP |
avatar_filename |
string |
no | File name for the avatar image such as badge.png. Required whenever an avatar is sent, because GitLab identifies the upload part by its file name |
description |
string |
no | Free-text explanation of what the achievement is awarded for |
achievement.delete
Sección titulada «achievement.delete»Delete an achievement definition and every award made from it. Returns: deletion confirmation plus the achievement as it looked when removed. See also:
achievement.revoke,achievement.list,achievement.create.
- Meta-herramienta:
gitlab_achievement, accióndelete - Herramienta individual:
gitlab_achievement_delete - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Delete en grupo; se sirve vacío:
achievementsDelete { achievement { namespace } }(sin Namespace: Read en proyecto o grupo o usuario) (página de permisos) - Comportamiento: escribe, destructiva (necesita confirmación), idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
achievement_id |
integer |
sí | Numeric ID of the achievement to delete. Every award made from it is removed with it |
achievement.list
Sección titulada «achievement.list»List the achievements a group or project namespace defines, with cursor pagination. Returns: each achievement with id, namespace_id, name, description, avatar_url, and timestamps, plus pagination cursors. See also:
achievement.recipients,achievement.create,achievement.award.
- Meta-herramienta:
gitlab_achievement, acciónlist - Herramienta individual:
gitlab_achievement_list - Nivel: Free
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Namespace: Read en proyecto o grupo o usuario; Achievement: Read en grupo; se sirve vacío:
namespace { achievements { nodes { namespace } } }(sin Namespace: Read en proyecto o grupo o usuario) (página de permisos) - Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
full_path |
string |
sí | Full path of the group or project namespace such as my-group or my-group/my-project |
after |
string |
no | Cursor for forward pagination (from previous response end_cursor) |
before |
string |
no | Cursor for backward pagination (from previous response start_cursor). The page size comes from last, or from first when last is omitted |
first |
integer |
no | Number of items to return (default 20, max 100) |
ids |
integer[] |
no | Numeric achievement IDs to restrict the result to. Omit to list every achievement in the namespace |
last |
integer |
no | Number of items to return from the end of the range (backward pagination). Cannot be combined with first |
achievement.recipients
Sección titulada «achievement.recipients»List every award of one achievement, revoked awards and repeat awards included, with cursor pagination. Returns: each award with its own id, achievement_id, user_id, award_message, priority, show_on_profile, and revocation stamps, plus pagination cursors. See also:
achievement.unique_users,achievement.user_list,achievement.revoke.
- Meta-herramienta:
gitlab_achievement, acciónrecipients - Herramienta individual:
gitlab_achievement_recipients - Nivel: Free
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Namespace: Read en proyecto o grupo o usuario; Achievement: Read en grupo; Achievement: Read en usuario; User: Read en usuario; se sirve vacío:
namespace { achievements { nodes { userAchievements { nodes { revokedByUser } } } } }(sin User: Read en usuario) (página de permisos) - Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
achievement_id |
integer |
sí | Numeric ID of the achievement whose awards to list |
full_path |
string |
sí | Full path of the group or project namespace that owns the achievement |
after |
string |
no | Cursor for forward pagination (from previous response end_cursor) |
before |
string |
no | Cursor for backward pagination (from previous response start_cursor). The page size comes from last, or from first when last is omitted |
first |
integer |
no | Number of items to return (default 20, max 100) |
last |
integer |
no | Number of items to return from the end of the range (backward pagination). Cannot be combined with first |
achievement.revoke
Sección titulada «achievement.revoke»Revoke one award while keeping its record, which is then stamped with revoked_at and revoked_by_user_id. Returns: confirmation plus the revoked award. See also:
achievement.user_achievement_delete,achievement.award,achievement.recipients.
- Meta-herramienta:
gitlab_achievement, acciónrevoke - Herramienta individual:
gitlab_achievement_revoke - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Revoke en grupo; Achievement: Read en usuario; User: Read en usuario; se sirve vacío:
achievementsRevoke { userAchievement { revokedByUser } }(sin User: Read en usuario) (página de permisos) - Comportamiento: escribe, destructiva (necesita confirmación), idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
user_achievement_id |
integer |
sí | Numeric ID of the award to revoke. The award record is kept and marked revoked |
achievement.unique_users
Sección titulada «achievement.unique_users»List the distinct users who hold one achievement, deduplicated across repeat awards, with cursor pagination. Returns: each user with id, username, name, state, avatar_url, and web_url, plus pagination cursors. See also:
achievement.recipients,achievement.user_list,achievement.list.
- Meta-herramienta:
gitlab_achievement, acciónunique_users - Herramienta individual:
gitlab_achievement_unique_users - Nivel: Free
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Namespace: Read en proyecto o grupo o usuario; Achievement: Read en grupo; User: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
achievement_id |
integer |
sí | Numeric ID of the achievement whose recipients to count |
full_path |
string |
sí | Full path of the group or project namespace that owns the achievement |
after |
string |
no | Cursor for forward pagination (from previous response end_cursor) |
before |
string |
no | Cursor for backward pagination (from previous response start_cursor). The page size comes from last, or from first when last is omitted |
first |
integer |
no | Number of items to return (default 20, max 100) |
last |
integer |
no | Number of items to return from the end of the range (backward pagination). Cannot be combined with first |
achievement.update
Sección titulada «achievement.update»Change an existing achievement’s name, description, or avatar. Omitted fields keep their current value. Returns: the updated achievement with id, namespace_id, name, description, avatar_url, and timestamps. See also:
achievement.list,achievement.create,achievement.delete.
- Meta-herramienta:
gitlab_achievement, acciónupdate - Herramienta individual:
gitlab_achievement_update - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Update en grupo; se sirve vacío:
achievementsUpdate { achievement { namespace } }(sin Namespace: Read en proyecto o grupo o usuario) (página de permisos) - Comportamiento: escribe, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
achievement_id |
integer |
sí | Numeric ID of the achievement to change |
avatar_content_base64 |
string |
no | Base64-encoded avatar image bytes. Alternative to avatar_file_path. Only one of the two should be provided |
avatar_content_type |
string |
no | MIME type of the avatar image such as image/png. Defaults to application/octet-stream when omitted |
avatar_file_path |
string |
no | Absolute path to a local image file the MCP server reads. Alternative to avatar_content_base64 for files too large to base64-encode. Only one of the two should be provided, and neither is available when the server is reached over HTTP |
avatar_filename |
string |
no | File name for the avatar image such as badge.png. Required whenever an avatar is sent, because GitLab identifies the upload part by its file name |
description |
string |
no | New description. Pass an empty string to remove it. Omit the field to leave it untouched |
name |
string |
no | New display name. Omit to leave the current name unchanged |
achievement.user_achievement_delete
Sección titulada «achievement.user_achievement_delete»Erase one award record outright, keeping no revocation history. Returns: confirmation plus the deleted award. See also:
achievement.revoke,achievement.user_list,achievement.delete.
- Meta-herramienta:
gitlab_achievement, acciónuser_achievement_delete - Herramienta individual:
gitlab_achievement_user_achievement_delete - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Delete en grupo; Achievement: Read en usuario; User: Read en usuario; se sirve vacío:
userAchievementsDelete { userAchievement { revokedByUser } }(sin User: Read en usuario) (página de permisos) - Comportamiento: escribe, destructiva (necesita confirmación), idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
user_achievement_id |
integer |
sí | Numeric ID of the award to delete. The record is removed outright rather than marked revoked |
achievement.user_achievement_reorder
Sección titulada «achievement.user_achievement_reorder»Set the display order of one user’s awards, highest priority first. Returns: confirmation plus every award in its new order with the assigned priority. See also:
achievement.user_list,achievement.user_achievement_update,achievement.award.
- Meta-herramienta:
gitlab_achievement, acciónuser_achievement_reorder - Herramienta individual:
gitlab_achievement_user_achievement_reorder - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Update en usuario; Achievement: Read en usuario; se sirve vacío:
userAchievementPrioritiesUpdate { userAchievements { achievement } }(sin Achievement: Read en usuario),userAchievementPrioritiesUpdate { userAchievements { user } }(sin User: Read en usuario),userAchievementPrioritiesUpdate { userAchievements { awardedByUser } }(sin User: Read en usuario),userAchievementPrioritiesUpdate { userAchievements { revokedByUser } }(sin User: Read en usuario) (página de permisos) - Comportamiento: escribe, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
user_achievement_ids |
integer[] |
sí | Numeric award IDs in the order they should appear, highest priority first. All of one user’s awards should be listed |
achievement.user_achievement_update
Sección titulada «achievement.user_achievement_update»Change one award: its show_on_profile visibility and its award message. Returns: the updated award with id, achievement_id, user_id, priority, show_on_profile, award message, and timestamps. See also:
achievement.user_list,achievement.user_achievement_reorder,achievement.update.
- Meta-herramienta:
gitlab_achievement, acciónuser_achievement_update - Herramienta individual:
gitlab_achievement_user_achievement_update - Nivel: Free
- Token clásico u OAuth:
api - Token de grano fino: Achievement: Update en usuario; Achievement: Read en usuario; User: Read en usuario; se sirve vacío:
userAchievementsUpdate { userAchievement { revokedByUser } }(sin User: Read en usuario) (página de permisos) - Comportamiento: escribe, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
user_achievement_id |
integer |
sí | Numeric ID of the award to change |
award_message |
string |
no | New note shown alongside the award, up to 200 characters. Pass an empty string to remove it. Omit the field to leave it untouched |
show_on_profile |
boolean |
no | Whether the recipient’s profile displays this award. Omit to leave the current visibility unchanged |
achievement.user_list
Sección titulada «achievement.user_list»List the awards one user holds, by username, with cursor pagination. Returns: each award with id, achievement_id, user_id, priority, show_on_profile, award_message, and revocation stamps, plus pagination cursors. See also:
achievement.recipients,achievement.user_achievement_reorder,achievement.award.
- Meta-herramienta:
gitlab_achievement, acciónuser_list - Herramienta individual:
gitlab_achievement_user_list - Nivel: Free
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: User: Read en usuario; Achievement: Read en usuario; se sirve vacío:
user { userAchievements { nodes { revokedByUser } } }(sin User: Read en usuario) (página de permisos) - Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
username |
string |
sí | Account name of the user whose awards to list, without a leading at sign |
after |
string |
no | Cursor for forward pagination (from previous response end_cursor) |
before |
string |
no | Cursor for backward pagination (from previous response start_cursor). The page size comes from last, or from first when last is omitted |
first |
integer |
no | Number of items to return (default 20, max 100) |
include_hidden |
boolean |
no | Include awards the user hid from their profile. Only the user themself and namespace or instance maintainers and owners see these |
last |
integer |
no | Number of items to return from the end of the range (backward pagination). Cannot be combined with first |