GitLab CI/CD · Capability

GitLab API — audit_events

GitLab API — audit_events. 1 operations. Lead operation: audit_events. Self-contained Naftiko capability covering one Gitlab Ci business surface.

Run with Naftiko Gitlab Ciaudit_events

What You Can Do

GET
Getapiv4groupsidauditevents — Get a list of audit events in this group.
/v1/api/v4/groups/{id}/audit-events

MCP Tools

get-list-audit-events-this

Get a list of audit events in this group.

read-only idempotent

Capability Spec

gitlab-ci-audit-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab API — audit_events
  description: 'GitLab API — audit_events. 1 operations. Lead operation: audit_events. Self-contained Naftiko capability covering
    one Gitlab Ci business surface.'
  tags:
  - Gitlab Ci
  - audit_events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITLAB_CI_API_KEY: GITLAB_CI_API_KEY
capability:
  consumes:
  - type: http
    namespace: gitlab-ci-audit-events
    baseUri: https://gitlab.com
    description: GitLab API — audit_events business capability. Self-contained, no shared references.
    resources:
    - name: api-v4-groups-id-audit_events
      path: /api/v4/groups/{id}/audit_events
      operations:
      - name: getapiv4groupsidauditevents
        method: GET
        description: Get a list of audit events in this group.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: created_after
          in: query
          type: string
          description: Return audit events created after the specified time
        - name: created_before
          in: query
          type: string
          description: Return audit events created before the specified time
        - name: page
          in: query
          type: integer
          description: Current page number
        - name: per_page
          in: query
          type: integer
          description: Number of items per page
        - name: id
          in: path
          type: integer
          required: true
  exposes:
  - type: rest
    namespace: gitlab-ci-audit-events-rest
    port: 8080
    description: REST adapter for GitLab API — audit_events. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v4/groups/{id}/audit-events
      name: api-v4-groups-id-audit-events
      description: REST surface for api-v4-groups-id-audit_events.
      operations:
      - method: GET
        name: getapiv4groupsidauditevents
        description: Get a list of audit events in this group.
        call: gitlab-ci-audit-events.getapiv4groupsidauditevents
        with:
          created_after: rest.created_after
          created_before: rest.created_before
          page: rest.page
          per_page: rest.per_page
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitlab-ci-audit-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab API — audit_events. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-list-audit-events-this
      description: Get a list of audit events in this group.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-ci-audit-events.getapiv4groupsidauditevents
      with:
        created_after: tools.created_after
        created_before: tools.created_before
        page: tools.page
        per_page: tools.per_page
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.