naftiko: 1.0.0-alpha2 info: label: GitLab API — Groups description: 'GitLab API — Groups. 10 operations. Lead operation: GitLab Gets a List of Access Requests for a Group.. Self-contained Naftiko capability covering one Gitlab business surface.' tags: - Gitlab - Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITLAB_API_KEY: GITLAB_API_KEY capability: consumes: - type: http namespace: gitlab-groups baseUri: https://www.gitlab.com/api description: GitLab API — Groups business capability. Self-contained, no shared references. resources: - name: api-v4-groups-id-access_requests path: /api/v4/groups/{id}/access_requests operations: - name: getapiv4groupsidaccessrequests method: GET description: GitLab Gets a List of Access Requests for a Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user 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: postapiv4groupsidaccessrequests method: POST description: GitLab Requests Access for the Authenticated User to a Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user required: true - name: api-v4-groups-id-access_requests-user_id path: /api/v4/groups/{id}/access_requests/{user_id} operations: - name: deleteapiv4groupsidaccessrequestsuserid method: DELETE description: GitLab Denies an Access Request for the Given User. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user required: true - name: user_id in: path type: integer description: The user ID of the access requester required: true - name: api-v4-groups-id-access_requests-user_id-approve path: /api/v4/groups/{id}/access_requests/{user_id}/approve operations: - name: putapiv4groupsidaccessrequestsuseridapprove method: PUT description: GitLab Approves an Access Request for the Given User. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user required: true - name: user_id in: path type: integer description: The user ID of the access requester required: true - name: body in: body type: object description: Request body (JSON). required: false - name: api-v4-groups-id-badges path: /api/v4/groups/{id}/badges operations: - name: getapiv4groupsidbadges method: GET description: GitLab Gets a List of Group Badges Viewable by the Authenticated User. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user. 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: name in: query type: string description: Name for the badge - name: postapiv4groupsidbadges method: POST description: GitLab Adds a Badge to a Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-v4-groups-id-badges-render path: /api/v4/groups/{id}/badges/render operations: - name: getapiv4groupsidbadgesrender method: GET description: GitLab Preview a Badge from a Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user. required: true - name: link_url in: query type: string description: URL of the badge link required: true - name: image_url in: query type: string description: URL of the badge image required: true - name: api-v4-groups-id-badges-badge_id path: /api/v4/groups/{id}/badges/{badge_id} operations: - name: getapiv4groupsidbadgesbadgeid method: GET description: GitLab Gets a Badge of a Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user. required: true - name: badge_id in: path type: integer description: The badge ID required: true - name: putapiv4groupsidbadgesbadgeid method: PUT description: GitLab Updates a Badge of a Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user. required: true - name: badge_id in: path type: integer required: true - name: body in: body type: object description: Request body (JSON). required: false - name: deleteapiv4groupsidbadgesbadgeid method: DELETE description: GitLab Removes a Badge from the Group. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID or URL-encoded path of the group owned by the authenticated user. required: true - name: badge_id in: path type: integer description: The badge ID required: true authentication: type: apikey key: Private-Token value: '{{env.GITLAB_API_KEY}}' placement: header exposes: - type: rest namespace: gitlab-groups-rest port: 8080 description: REST adapter for GitLab API — Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v4/groups/{id}/access-requests name: api-v4-groups-id-access-requests description: REST surface for api-v4-groups-id-access_requests. operations: - method: GET name: getapiv4groupsidaccessrequests description: GitLab Gets a List of Access Requests for a Group. call: gitlab-groups.getapiv4groupsidaccessrequests with: id: rest.id page: rest.page per_page: rest.per_page outputParameters: - type: object mapping: $. - method: POST name: postapiv4groupsidaccessrequests description: GitLab Requests Access for the Authenticated User to a Group. call: gitlab-groups.postapiv4groupsidaccessrequests with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/v4/groups/{id}/access-requests/{user-id} name: api-v4-groups-id-access-requests-user-id description: REST surface for api-v4-groups-id-access_requests-user_id. operations: - method: DELETE name: deleteapiv4groupsidaccessrequestsuserid description: GitLab Denies an Access Request for the Given User. call: gitlab-groups.deleteapiv4groupsidaccessrequestsuserid with: id: rest.id user_id: rest.user_id outputParameters: - type: object mapping: $. - path: /v1/api/v4/groups/{id}/access-requests/{user-id}/approve name: api-v4-groups-id-access-requests-user-id-approve description: REST surface for api-v4-groups-id-access_requests-user_id-approve. operations: - method: PUT name: putapiv4groupsidaccessrequestsuseridapprove description: GitLab Approves an Access Request for the Given User. call: gitlab-groups.putapiv4groupsidaccessrequestsuseridapprove with: id: rest.id user_id: rest.user_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v4/groups/{id}/badges name: api-v4-groups-id-badges description: REST surface for api-v4-groups-id-badges. operations: - method: GET name: getapiv4groupsidbadges description: GitLab Gets a List of Group Badges Viewable by the Authenticated User. call: gitlab-groups.getapiv4groupsidbadges with: id: rest.id page: rest.page per_page: rest.per_page name: rest.name outputParameters: - type: object mapping: $. - method: POST name: postapiv4groupsidbadges description: GitLab Adds a Badge to a Group. call: gitlab-groups.postapiv4groupsidbadges with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v4/groups/{id}/badges/render name: api-v4-groups-id-badges-render description: REST surface for api-v4-groups-id-badges-render. operations: - method: GET name: getapiv4groupsidbadgesrender description: GitLab Preview a Badge from a Group. call: gitlab-groups.getapiv4groupsidbadgesrender with: id: rest.id link_url: rest.link_url image_url: rest.image_url outputParameters: - type: object mapping: $. - path: /v1/api/v4/groups/{id}/badges/{badge-id} name: api-v4-groups-id-badges-badge-id description: REST surface for api-v4-groups-id-badges-badge_id. operations: - method: GET name: getapiv4groupsidbadgesbadgeid description: GitLab Gets a Badge of a Group. call: gitlab-groups.getapiv4groupsidbadgesbadgeid with: id: rest.id badge_id: rest.badge_id outputParameters: - type: object mapping: $. - method: PUT name: putapiv4groupsidbadgesbadgeid description: GitLab Updates a Badge of a Group. call: gitlab-groups.putapiv4groupsidbadgesbadgeid with: id: rest.id badge_id: rest.badge_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteapiv4groupsidbadgesbadgeid description: GitLab Removes a Badge from the Group. call: gitlab-groups.deleteapiv4groupsidbadgesbadgeid with: id: rest.id badge_id: rest.badge_id outputParameters: - type: object mapping: $. - type: mcp namespace: gitlab-groups-mcp port: 9090 transport: http description: MCP adapter for GitLab API — Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: gitlab-gets-list-access-requests description: GitLab Gets a List of Access Requests for a Group. hints: readOnly: true destructive: false idempotent: true call: gitlab-groups.getapiv4groupsidaccessrequests with: id: tools.id page: tools.page per_page: tools.per_page outputParameters: - type: object mapping: $. - name: gitlab-requests-access-authenticated-user description: GitLab Requests Access for the Authenticated User to a Group. hints: readOnly: false destructive: false idempotent: false call: gitlab-groups.postapiv4groupsidaccessrequests with: id: tools.id outputParameters: - type: object mapping: $. - name: gitlab-denies-access-request-given description: GitLab Denies an Access Request for the Given User. hints: readOnly: false destructive: true idempotent: true call: gitlab-groups.deleteapiv4groupsidaccessrequestsuserid with: id: tools.id user_id: tools.user_id outputParameters: - type: object mapping: $. - name: gitlab-approves-access-request-given description: GitLab Approves an Access Request for the Given User. hints: readOnly: false destructive: false idempotent: true call: gitlab-groups.putapiv4groupsidaccessrequestsuseridapprove with: id: tools.id user_id: tools.user_id body: tools.body outputParameters: - type: object mapping: $. - name: gitlab-gets-list-group-badges description: GitLab Gets a List of Group Badges Viewable by the Authenticated User. hints: readOnly: true destructive: false idempotent: true call: gitlab-groups.getapiv4groupsidbadges with: id: tools.id page: tools.page per_page: tools.per_page name: tools.name outputParameters: - type: object mapping: $. - name: gitlab-adds-badge-group description: GitLab Adds a Badge to a Group. hints: readOnly: false destructive: false idempotent: false call: gitlab-groups.postapiv4groupsidbadges with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: gitlab-preview-badge-group description: GitLab Preview a Badge from a Group. hints: readOnly: true destructive: false idempotent: true call: gitlab-groups.getapiv4groupsidbadgesrender with: id: tools.id link_url: tools.link_url image_url: tools.image_url outputParameters: - type: object mapping: $. - name: gitlab-gets-badge-group description: GitLab Gets a Badge of a Group. hints: readOnly: true destructive: false idempotent: true call: gitlab-groups.getapiv4groupsidbadgesbadgeid with: id: tools.id badge_id: tools.badge_id outputParameters: - type: object mapping: $. - name: gitlab-updates-badge-group description: GitLab Updates a Badge of a Group. hints: readOnly: false destructive: false idempotent: true call: gitlab-groups.putapiv4groupsidbadgesbadgeid with: id: tools.id badge_id: tools.badge_id body: tools.body outputParameters: - type: object mapping: $. - name: gitlab-removes-badge-group description: GitLab Removes a Badge from the Group. hints: readOnly: false destructive: true idempotent: true call: gitlab-groups.deleteapiv4groupsidbadgesbadgeid with: id: tools.id badge_id: tools.badge_id outputParameters: - type: object mapping: $.