GitLab CI/CD · Capability

GitLab API — suggestions

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

Run with Naftiko Gitlab Cisuggestions

What You Can Do

PUT
Putapiv4suggestionsbatchapply — Apply multiple suggestion patches in the Merge Request where they were created
/v1/api/v4/suggestions/batch-apply
PUT
Putapiv4suggestionsidapply — Apply suggestion patch in the Merge Request it was created
/v1/api/v4/suggestions/{id}/apply

MCP Tools

apply-multiple-suggestion-patches-merge

Apply multiple suggestion patches in the Merge Request where they were created

idempotent
apply-suggestion-patch-merge-request

Apply suggestion patch in the Merge Request it was created

idempotent

Capability Spec

gitlab-ci-suggestions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab API — suggestions
  description: 'GitLab API — suggestions. 2 operations. Lead operation: suggestions. Self-contained Naftiko capability covering
    one Gitlab Ci business surface.'
  tags:
  - Gitlab Ci
  - suggestions
  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-suggestions
    baseUri: https://gitlab.com
    description: GitLab API — suggestions business capability. Self-contained, no shared references.
    resources:
    - name: api-v4-suggestions-batch_apply
      path: /api/v4/suggestions/batch_apply
      operations:
      - name: putapiv4suggestionsbatchapply
        method: PUT
        description: Apply multiple suggestion patches in the Merge Request where they were created
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: putApiV4SuggestionsBatchApply
          in: body
          type: string
          required: true
    - name: api-v4-suggestions-id-apply
      path: /api/v4/suggestions/{id}/apply
      operations:
      - name: putapiv4suggestionsidapply
        method: PUT
        description: Apply suggestion patch in the Merge Request it was created
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the suggestion
          required: true
        - name: putApiV4SuggestionsIdApply
          in: body
          type: string
          required: true
  exposes:
  - type: rest
    namespace: gitlab-ci-suggestions-rest
    port: 8080
    description: REST adapter for GitLab API — suggestions. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v4/suggestions/batch-apply
      name: api-v4-suggestions-batch-apply
      description: REST surface for api-v4-suggestions-batch_apply.
      operations:
      - method: PUT
        name: putapiv4suggestionsbatchapply
        description: Apply multiple suggestion patches in the Merge Request where they were created
        call: gitlab-ci-suggestions.putapiv4suggestionsbatchapply
        with:
          putApiV4SuggestionsBatchApply: rest.putApiV4SuggestionsBatchApply
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v4/suggestions/{id}/apply
      name: api-v4-suggestions-id-apply
      description: REST surface for api-v4-suggestions-id-apply.
      operations:
      - method: PUT
        name: putapiv4suggestionsidapply
        description: Apply suggestion patch in the Merge Request it was created
        call: gitlab-ci-suggestions.putapiv4suggestionsidapply
        with:
          id: rest.id
          putApiV4SuggestionsIdApply: rest.putApiV4SuggestionsIdApply
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitlab-ci-suggestions-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab API — suggestions. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: apply-multiple-suggestion-patches-merge
      description: Apply multiple suggestion patches in the Merge Request where they were created
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gitlab-ci-suggestions.putapiv4suggestionsbatchapply
      with:
        putApiV4SuggestionsBatchApply: tools.putApiV4SuggestionsBatchApply
      outputParameters:
      - type: object
        mapping: $.
    - name: apply-suggestion-patch-merge-request
      description: Apply suggestion patch in the Merge Request it was created
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gitlab-ci-suggestions.putapiv4suggestionsidapply
      with:
        id: tools.id
        putApiV4SuggestionsIdApply: tools.putApiV4SuggestionsIdApply
      outputParameters:
      - type: object
        mapping: $.