Eventos de auditoría
Los eventos de auditoría son el registro de GitLab de quién cambió qué, guardado por cumplimiento. Estas acciones los listan y leen uno, en cada uno de los tres niveles en los que GitLab los guarda: la instancia, un grupo y un proyecto. El nivel de instancia necesita un administrador.
Preguntas de ejemplo
Sección titulada «Preguntas de ejemplo»- “Muestra los eventos de auditoría de la semana pasada del grupo platform”
- “¿Quién cambió ayer los ajustes del proyecto 42?”
- “Lista los eventos de auditoría de la instancia desde el 2026-09-01”
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, comoaudit_event.get_group, 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_audit_eventconactionigual al nombre de la acción, comoget_group, y sus parámetros enparams. - Individual (
GITLAB_MCP_TOOL_SURFACE=individual): llama a la herramienta propia de la acción, comogitlab_get_group_audit_event, pasándole directamente sus parámetros.
Disponibilidad
Sección titulada «Disponibilidad»Cuántas de estas acciones sirve una instancia en cada nivel, de un total de 6:
- Free: 0
- Premium: 6
- Ultimate: 6
Acciones de solo lectura: 6 de 6, las que conserva un despliegue en modo de solo lectura. A un token con read_api y sin api se le sirven 6 de las 6.
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.4.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.
| Acción | Individual |
|---|---|
audit_event.get_group | gitlab_get_group_audit_event |
audit_event.get_instance | gitlab_get_instance_audit_event |
audit_event.get_project | gitlab_get_project_audit_event |
audit_event.list_group | gitlab_list_group_audit_events |
audit_event.list_instance | gitlab_list_instance_audit_events |
audit_event.list_project | gitlab_list_project_audit_events |
audit_event.get_group
Sección titulada «audit_event.get_group»Get a single group-level audit event by group_id and ID. Returns: the audit event with author, entity, event name/type, target details, IP address, and timestamp. See also:
audit_event.list_group,audit_event.get_project,audit_event.get_instance.
- Meta-herramienta:
gitlab_audit_event, acciónget_group - Herramienta individual:
gitlab_get_group_audit_event - Nivel: Premium
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Audit Event: Read en grupo (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
event_id | integer | sí | Audit event ID |
group_id | string/integer | sí | Group ID or URL-encoded path |
audit_event.get_instance
Sección titulada «audit_event.get_instance»Get a single instance-level audit event by ID (administrator only). Returns: the audit event with author, entity, event name/type, target details, IP address, and timestamp. See also:
audit_event.list_instance,audit_event.get_group,audit_event.get_project.
- Meta-herramienta:
gitlab_audit_event, acciónget_instance - Herramienta individual:
gitlab_get_instance_audit_event - Nivel: Premium
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Audit Event: Read en instancia (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
event_id | integer | sí | Audit event ID |
audit_event.get_project
Sección titulada «audit_event.get_project»Get a single project-level audit event by project_id and ID. Returns: the audit event with author, entity, event name/type, target details, IP address, and timestamp. See also:
audit_event.list_project,audit_event.get_group,audit_event.get_instance.
- Meta-herramienta:
gitlab_audit_event, acciónget_project - Herramienta individual:
gitlab_get_project_audit_event - Nivel: Premium
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Audit Event: Read en proyecto (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
event_id | integer | sí | Audit event ID |
project_id | string/integer | sí | Project ID or URL-encoded path |
audit_event.list_group
Sección titulada «audit_event.list_group»List group-level audit events for a group. Returns: audit events with author, entity, event name/type, details, timestamps, and pagination metadata. See also:
audit_event.get_group,audit_event.list_project,audit_event.list_instance.
- Meta-herramienta:
gitlab_audit_event, acciónlist_group - Herramienta individual:
gitlab_list_group_audit_events - Nivel: Premium
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Audit Event: Read en grupo (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
group_id | string/integer | sí | Group ID or URL-encoded path |
created_after | string | no | Return events created after this time: an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC |
created_before | string | no | Return events created before this time: an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC |
page | integer | no | Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward. |
page_token | string | no | Next page of a keyset listing: the next_page_token of the previous response of this action, passed back unchanged. It carries the position and every filter of the listing as GitLab read them, and those are what the next page is asked with, whatever filters are sent beside it. Leave it empty for the first page. |
pagination | string | no | Pagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost, and a keyset page names the next one in next_page_token rather than next_page. |
per_page | integer | no | Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large. |
audit_event.list_instance
Sección titulada «audit_event.list_instance»List instance-level audit events (administrator only). Returns: audit events with author, entity, event name/type, details, timestamps, and pagination metadata. See also:
audit_event.get_instance,audit_event.list_group,audit_event.list_project.
- Meta-herramienta:
gitlab_audit_event, acciónlist_instance - Herramienta individual:
gitlab_list_instance_audit_events - Nivel: Premium
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Audit Event: Read en instancia (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
created_after | string | no | Return events created after this time: an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC |
created_before | string | no | Return events created before this time: an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC |
entity_id | integer | no | Return only events of the entity with this ID. Requires entity_type |
entity_type | string (Project, User, Group, Gitlab::Audit::InstanceScope) | no | Return only events of this entity type: Project, User, Group or Gitlab::Audit::InstanceScope |
page | integer | no | Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward. |
page_token | string | no | Next page of a keyset listing: the next_page_token of the previous response of this action, passed back unchanged. It carries the position and every filter of the listing as GitLab read them, and those are what the next page is asked with, whatever filters are sent beside it. Leave it empty for the first page. |
pagination | string | no | Pagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost, and a keyset page names the next one in next_page_token rather than next_page. |
per_page | integer | no | Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large. |
audit_event.list_project
Sección titulada «audit_event.list_project»List project-level audit events for a project. Returns: audit events with author, entity, event name/type, details, timestamps, and pagination metadata. See also:
audit_event.get_project,audit_event.list_group,audit_event.list_instance.
- Meta-herramienta:
gitlab_audit_event, acciónlist_project - Herramienta individual:
gitlab_list_project_audit_events - Nivel: Premium
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Audit Event: Read en proyecto (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
project_id | string/integer | sí | Project ID or URL-encoded path |
created_after | string | no | Return events created after this time: an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC |
created_before | string | no | Return events created before this time: an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC |
page | integer | no | Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward. |
page_token | string | no | Next page of a keyset listing: the next_page_token of the previous response of this action, passed back unchanged. It carries the position and every filter of the listing as GitLab read them, and those are what the next page is asked with, whatever filters are sent beside it. Leave it empty for the first page. |
pagination | string | no | Pagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost, and a keyset page names the next one in next_page_token rather than next_page. |
per_page | integer | no | Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large. |