Rainbow · Capability

Rainbow Contacts API — Users

Rainbow Contacts API — Users. 3 operations. Lead operation: Get My Profile. Self-contained Naftiko capability covering one Rainbow business surface.

Run with Naftiko RainbowUsers

What You Can Do

GET
Getmyprofile — Get My Profile
/v1/enduser/v1-0/users/me
PUT
Updatemyprofile — Update My Profile
/v1/enduser/v1-0/users/me
PUT
Updatepresence — Update Presence
/v1/enduser/v1-0/users/me/presence

MCP Tools

get-my-profile

Get My Profile

read-only idempotent
update-my-profile

Update My Profile

idempotent
update-presence

Update Presence

idempotent

Capability Spec

contacts-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Rainbow Contacts API — Users
  description: 'Rainbow Contacts API — Users. 3 operations. Lead operation: Get My Profile. Self-contained Naftiko capability
    covering one Rainbow business surface.'
  tags:
  - Rainbow
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RAINBOW_API_KEY: RAINBOW_API_KEY
capability:
  consumes:
  - type: http
    namespace: contacts-users
    baseUri: https://openrainbow.com/api/rainbow
    description: Rainbow Contacts API — Users business capability. Self-contained, no shared references.
    resources:
    - name: enduser-v1.0-users-me
      path: /enduser/v1.0/users/me
      operations:
      - name: getmyprofile
        method: GET
        description: Get My Profile
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatemyprofile
        method: PUT
        description: Update My Profile
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: enduser-v1.0-users-me-presence
      path: /enduser/v1.0/users/me/presence
      operations:
      - name: updatepresence
        method: PUT
        description: Update Presence
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.RAINBOW_API_KEY}}'
  exposes:
  - type: rest
    namespace: contacts-users-rest
    port: 8080
    description: REST adapter for Rainbow Contacts API — Users. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/enduser/v1-0/users/me
      name: enduser-v1-0-users-me
      description: REST surface for enduser-v1.0-users-me.
      operations:
      - method: GET
        name: getmyprofile
        description: Get My Profile
        call: contacts-users.getmyprofile
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatemyprofile
        description: Update My Profile
        call: contacts-users.updatemyprofile
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/enduser/v1-0/users/me/presence
      name: enduser-v1-0-users-me-presence
      description: REST surface for enduser-v1.0-users-me-presence.
      operations:
      - method: PUT
        name: updatepresence
        description: Update Presence
        call: contacts-users.updatepresence
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: contacts-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Rainbow Contacts API — Users. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-my-profile
      description: Get My Profile
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: contacts-users.getmyprofile
      outputParameters:
      - type: object
        mapping: $.
    - name: update-my-profile
      description: Update My Profile
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: contacts-users.updatemyprofile
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-presence
      description: Update Presence
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: contacts-users.updatepresence
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.