GitLab CI/CD · Capability

GitLab API — metadata

GitLab API — metadata. 2 operations. Lead operation: Retrieve metadata information for this GitLab instance. Self-contained Naftiko capability covering one Gitlab Ci business surface.

Run with Naftiko Gitlab Cimetadata

What You Can Do

GET
Getapiv4metadata — Retrieve metadata information for this GitLab instance
/v1/api/v4/metadata
GET
Getapiv4version — Retrieves version information for the GitLab instance
/v1/api/v4/version

MCP Tools

retrieve-metadata-information-this-gitlab

Retrieve metadata information for this GitLab instance

read-only idempotent
retrieves-version-information-gitlab-instance

Retrieves version information for the GitLab instance

read-only idempotent

Capability Spec

gitlab-ci-metadata.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab API — metadata
  description: 'GitLab API — metadata. 2 operations. Lead operation: Retrieve metadata information for this GitLab instance.
    Self-contained Naftiko capability covering one Gitlab Ci business surface.'
  tags:
  - Gitlab Ci
  - metadata
  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-metadata
    baseUri: https://gitlab.com
    description: GitLab API — metadata business capability. Self-contained, no shared references.
    resources:
    - name: api-v4-metadata
      path: /api/v4/metadata
      operations:
      - name: getapiv4metadata
        method: GET
        description: Retrieve metadata information for this GitLab instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v4-version
      path: /api/v4/version
      operations:
      - name: getapiv4version
        method: GET
        description: Retrieves version information for the GitLab instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: gitlab-ci-metadata-rest
    port: 8080
    description: REST adapter for GitLab API — metadata. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v4/metadata
      name: api-v4-metadata
      description: REST surface for api-v4-metadata.
      operations:
      - method: GET
        name: getapiv4metadata
        description: Retrieve metadata information for this GitLab instance
        call: gitlab-ci-metadata.getapiv4metadata
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v4/version
      name: api-v4-version
      description: REST surface for api-v4-version.
      operations:
      - method: GET
        name: getapiv4version
        description: Retrieves version information for the GitLab instance
        call: gitlab-ci-metadata.getapiv4version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitlab-ci-metadata-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab API — metadata. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: retrieve-metadata-information-this-gitlab
      description: Retrieve metadata information for this GitLab instance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-ci-metadata.getapiv4metadata
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieves-version-information-gitlab-instance
      description: Retrieves version information for the GitLab instance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-ci-metadata.getapiv4version
      outputParameters:
      - type: object
        mapping: $.