GitLab · Capability

GitLab API — Avatar

GitLab API — Avatar. 1 operations. Lead operation: Avatar. Self-contained Naftiko capability covering one Gitlab business surface.

Run with Naftiko GitlabAvatar

What You Can Do

GET
Getapiv4avatar — Return avatar url for a user
/v1/api/v4/avatar

MCP Tools

return-avatar-url-user

Return avatar url for a user

read-only idempotent

Capability Spec

gitlab-avatar.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab API — Avatar
  description: 'GitLab API — Avatar. 1 operations. Lead operation: Avatar. Self-contained Naftiko capability covering one
    Gitlab business surface.'
  tags:
  - Gitlab
  - Avatar
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITLAB_API_KEY: GITLAB_API_KEY
capability:
  consumes:
  - type: http
    namespace: gitlab-avatar
    baseUri: https://www.gitlab.com/api
    description: GitLab API — Avatar business capability. Self-contained, no shared references.
    resources:
    - name: api-v4-avatar
      path: /api/v4/avatar
      operations:
      - name: getapiv4avatar
        method: GET
        description: Return avatar url for a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: email
          in: query
          type: string
          description: Public email address of the user
          required: true
        - name: size
          in: query
          type: integer
          description: Single pixel dimension for Gravatar images
    authentication:
      type: apikey
      key: Private-Token
      value: '{{env.GITLAB_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: gitlab-avatar-rest
    port: 8080
    description: REST adapter for GitLab API — Avatar. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v4/avatar
      name: api-v4-avatar
      description: REST surface for api-v4-avatar.
      operations:
      - method: GET
        name: getapiv4avatar
        description: Return avatar url for a user
        call: gitlab-avatar.getapiv4avatar
        with:
          email: rest.email
          size: rest.size
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitlab-avatar-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab API — Avatar. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: return-avatar-url-user
      description: Return avatar url for a user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-avatar.getapiv4avatar
      with:
        email: tools.email
        size: tools.size
      outputParameters:
      - type: object
        mapping: $.