GitLab CI/CD · Capability

GitLab API — protected_tags

GitLab API — protected_tags. 4 operations. Lead operation: Get a project's protected tags. Self-contained Naftiko capability covering one Gitlab Ci business surface.

Run with Naftiko Gitlab Ciprotected_tags

What You Can Do

GET
Getapiv4projectsidprotectedtags — Get a project's protected tags
/v1/api/v4/projects/{id}/protected-tags
POST
Postapiv4projectsidprotectedtags — Protect a single tag or wildcard
/v1/api/v4/projects/{id}/protected-tags
GET
Getapiv4projectsidprotectedtagsname — Get a single protected tag
/v1/api/v4/projects/{id}/protected-tags/{name}
DELETE
Deleteapiv4projectsidprotectedtagsname — Unprotect a single tag
/v1/api/v4/projects/{id}/protected-tags/{name}

MCP Tools

get-project-s-protected-tags

Get a project's protected tags

read-only idempotent
protect-single-tag-wildcard

Protect a single tag or wildcard

get-single-protected-tag

Get a single protected tag

read-only idempotent
unprotect-single-tag

Unprotect a single tag

idempotent

Capability Spec

gitlab-ci-protected-tags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab API — protected_tags
  description: 'GitLab API — protected_tags. 4 operations. Lead operation: Get a project''s protected tags. Self-contained
    Naftiko capability covering one Gitlab Ci business surface.'
  tags:
  - Gitlab Ci
  - protected_tags
  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-protected-tags
    baseUri: https://gitlab.com
    description: GitLab API — protected_tags business capability. Self-contained, no shared references.
    resources:
    - name: api-v4-projects-id-protected_tags
      path: /api/v4/projects/{id}/protected_tags
      operations:
      - name: getapiv4projectsidprotectedtags
        method: GET
        description: Get a project's protected tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID or URL-encoded path of the project
          required: true
        - name: page
          in: query
          type: integer
          description: Current page number
        - name: per_page
          in: query
          type: integer
          description: Number of items per page
      - name: postapiv4projectsidprotectedtags
        method: POST
        description: Protect a single tag or wildcard
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID or URL-encoded path of the project
          required: true
        - name: postApiV4ProjectsIdProtectedTags
          in: body
          type: string
          required: true
    - name: api-v4-projects-id-protected_tags-name
      path: /api/v4/projects/{id}/protected_tags/{name}
      operations:
      - name: getapiv4projectsidprotectedtagsname
        method: GET
        description: Get a single protected tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID or URL-encoded path of the project
          required: true
        - name: name
          in: path
          type: string
          description: The name of the tag or wildcard
          required: true
      - name: deleteapiv4projectsidprotectedtagsname
        method: DELETE
        description: Unprotect a single tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID or URL-encoded path of the project
          required: true
        - name: name
          in: path
          type: string
          description: The name of the protected tag
          required: true
  exposes:
  - type: rest
    namespace: gitlab-ci-protected-tags-rest
    port: 8080
    description: REST adapter for GitLab API — protected_tags. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v4/projects/{id}/protected-tags
      name: api-v4-projects-id-protected-tags
      description: REST surface for api-v4-projects-id-protected_tags.
      operations:
      - method: GET
        name: getapiv4projectsidprotectedtags
        description: Get a project's protected tags
        call: gitlab-ci-protected-tags.getapiv4projectsidprotectedtags
        with:
          id: rest.id
          page: rest.page
          per_page: rest.per_page
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postapiv4projectsidprotectedtags
        description: Protect a single tag or wildcard
        call: gitlab-ci-protected-tags.postapiv4projectsidprotectedtags
        with:
          id: rest.id
          postApiV4ProjectsIdProtectedTags: rest.postApiV4ProjectsIdProtectedTags
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v4/projects/{id}/protected-tags/{name}
      name: api-v4-projects-id-protected-tags-name
      description: REST surface for api-v4-projects-id-protected_tags-name.
      operations:
      - method: GET
        name: getapiv4projectsidprotectedtagsname
        description: Get a single protected tag
        call: gitlab-ci-protected-tags.getapiv4projectsidprotectedtagsname
        with:
          id: rest.id
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapiv4projectsidprotectedtagsname
        description: Unprotect a single tag
        call: gitlab-ci-protected-tags.deleteapiv4projectsidprotectedtagsname
        with:
          id: rest.id
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitlab-ci-protected-tags-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab API — protected_tags. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-project-s-protected-tags
      description: Get a project's protected tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-ci-protected-tags.getapiv4projectsidprotectedtags
      with:
        id: tools.id
        page: tools.page
        per_page: tools.per_page
      outputParameters:
      - type: object
        mapping: $.
    - name: protect-single-tag-wildcard
      description: Protect a single tag or wildcard
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gitlab-ci-protected-tags.postapiv4projectsidprotectedtags
      with:
        id: tools.id
        postApiV4ProjectsIdProtectedTags: tools.postApiV4ProjectsIdProtectedTags
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-protected-tag
      description: Get a single protected tag
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-ci-protected-tags.getapiv4projectsidprotectedtagsname
      with:
        id: tools.id
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.
    - name: unprotect-single-tag
      description: Unprotect a single tag
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: gitlab-ci-protected-tags.deleteapiv4projectsidprotectedtagsname
      with:
        id: tools.id
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.