GitLab · Capability

GitLab Webhooks API — Project Webhooks

GitLab Webhooks API — Project Webhooks. 5 operations. Lead operation: GitLab List Project Webhooks. Self-contained Naftiko capability covering one Gitlab business surface.

Run with Naftiko GitlabProject Webhooks

What You Can Do

GET
Listprojectwebhooks — GitLab List Project Webhooks
/v1/projects/{id}/hooks
POST
Addprojectwebhook — GitLab Add a Webhook to a Project
/v1/projects/{id}/hooks
GET
Getprojectwebhook — GitLab Get a Project Webhook
/v1/projects/{id}/hooks/{hook-id}
PUT
Updateprojectwebhook — GitLab Update a Project Webhook
/v1/projects/{id}/hooks/{hook-id}
DELETE
Deleteprojectwebhook — GitLab Delete a Project Webhook
/v1/projects/{id}/hooks/{hook-id}

MCP Tools

gitlab-list-project-webhooks

GitLab List Project Webhooks

read-only idempotent
gitlab-add-webhook-project

GitLab Add a Webhook to a Project

gitlab-get-project-webhook

GitLab Get a Project Webhook

read-only idempotent
gitlab-update-project-webhook

GitLab Update a Project Webhook

idempotent
gitlab-delete-project-webhook

GitLab Delete a Project Webhook

idempotent

Capability Spec

webhooks-project-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab Webhooks API — Project Webhooks
  description: 'GitLab Webhooks API — Project Webhooks. 5 operations. Lead operation: GitLab List Project Webhooks. Self-contained
    Naftiko capability covering one Gitlab business surface.'
  tags:
  - Gitlab
  - Project Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITLAB_API_KEY: GITLAB_API_KEY
capability:
  consumes:
  - type: http
    namespace: webhooks-project-webhooks
    baseUri: https://gitlab.com/api/v4
    description: GitLab Webhooks API — Project Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: projects-id-hooks
      path: /projects/{id}/hooks
      operations:
      - name: listprojectwebhooks
        method: GET
        description: GitLab List Project Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addprojectwebhook
        method: POST
        description: GitLab Add a Webhook to a Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-id-hooks-hook_id
      path: /projects/{id}/hooks/{hook_id}
      operations:
      - name: getprojectwebhook
        method: GET
        description: GitLab Get a Project Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateprojectwebhook
        method: PUT
        description: GitLab Update a Project Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteprojectwebhook
        method: DELETE
        description: GitLab Delete a Project Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITLAB_API_KEY}}'
  exposes:
  - type: rest
    namespace: webhooks-project-webhooks-rest
    port: 8080
    description: REST adapter for GitLab Webhooks API — Project Webhooks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{id}/hooks
      name: projects-id-hooks
      description: REST surface for projects-id-hooks.
      operations:
      - method: GET
        name: listprojectwebhooks
        description: GitLab List Project Webhooks
        call: webhooks-project-webhooks.listprojectwebhooks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addprojectwebhook
        description: GitLab Add a Webhook to a Project
        call: webhooks-project-webhooks.addprojectwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{id}/hooks/{hook-id}
      name: projects-id-hooks-hook-id
      description: REST surface for projects-id-hooks-hook_id.
      operations:
      - method: GET
        name: getprojectwebhook
        description: GitLab Get a Project Webhook
        call: webhooks-project-webhooks.getprojectwebhook
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateprojectwebhook
        description: GitLab Update a Project Webhook
        call: webhooks-project-webhooks.updateprojectwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteprojectwebhook
        description: GitLab Delete a Project Webhook
        call: webhooks-project-webhooks.deleteprojectwebhook
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: webhooks-project-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab Webhooks API — Project Webhooks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: gitlab-list-project-webhooks
      description: GitLab List Project Webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: webhooks-project-webhooks.listprojectwebhooks
      outputParameters:
      - type: object
        mapping: $.
    - name: gitlab-add-webhook-project
      description: GitLab Add a Webhook to a Project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: webhooks-project-webhooks.addprojectwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gitlab-get-project-webhook
      description: GitLab Get a Project Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: webhooks-project-webhooks.getprojectwebhook
      outputParameters:
      - type: object
        mapping: $.
    - name: gitlab-update-project-webhook
      description: GitLab Update a Project Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: webhooks-project-webhooks.updateprojectwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gitlab-delete-project-webhook
      description: GitLab Delete a Project Webhook
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: webhooks-project-webhooks.deleteprojectwebhook
      outputParameters:
      - type: object
        mapping: $.