naftiko: 1.0.0-alpha2 info: label: Prime Intellect Platform API — User & Teams description: Prime Intellect Platform API — User & Teams. 4 operations. Self-contained Naftiko capability covering one Prime Intellect business surface. tags: - Prime Intellect - Platform created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: PRIME_API_KEY: PRIME_API_KEY capability: consumes: - type: http namespace: platform-user baseUri: https://api.primeintellect.ai description: Prime Intellect Platform API — User & Teams business capability. Self-contained, no shared references. resources: - name: user-whoami path: /api/v1/user/whoami operations: - name: whoami method: GET description: Identify the authenticated user. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: user-teams path: /api/v1/user/teams operations: - name: listmyteams method: GET description: List teams the user belongs to. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: user-slug path: /api/v1/user/slug operations: - name: setslug method: PUT description: Set a username slug for the account. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: teams-team_id-members path: /api/v1/teams/{team_id}/members operations: - name: listteammembers method: GET description: List members of a team. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: team_id in: path type: string required: true authentication: type: bearer value: '{{env.PRIME_API_KEY}}' placement: header exposes: - type: rest namespace: platform-user-rest port: 8080 description: REST adapter for Prime Intellect Platform API — User & Teams. resources: - path: /v1/api/v1/user/whoami name: user-whoami description: REST surface for user-whoami. operations: - method: GET name: whoami description: Identify the authenticated user. call: platform-user.whoami with: {} outputParameters: - type: object mapping: $. - path: /v1/api/v1/user/teams name: user-teams description: REST surface for user-teams. operations: - method: GET name: listmyteams description: List teams the user belongs to. call: platform-user.listmyteams with: {} outputParameters: - type: object mapping: $. - path: /v1/api/v1/user/slug name: user-slug description: REST surface for user-slug. operations: - method: PUT name: setslug description: Set a username slug for the account. call: platform-user.setslug with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/teams/{team_id}/members name: teams-team_id-members description: REST surface for teams-team_id-members. operations: - method: GET name: listteammembers description: List members of a team. call: platform-user.listteammembers with: team_id: rest.path.team_id outputParameters: - type: object mapping: $. - type: mcp namespace: platform-user-mcp port: 9090 transport: http description: MCP adapter for Prime Intellect Platform API — User & Teams. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: prime-intellect-whoami description: Identify the authenticated user. hints: readOnly: true destructive: false idempotent: true call: platform-user.whoami with: {} outputParameters: - type: object mapping: $. - name: prime-intellect-listmyteams description: List teams the user belongs to. hints: readOnly: true destructive: false idempotent: true call: platform-user.listmyteams with: {} outputParameters: - type: object mapping: $. - name: prime-intellect-setslug description: Set a username slug for the account. hints: readOnly: false destructive: false idempotent: true call: platform-user.setslug with: body: tools.body outputParameters: - type: object mapping: $. - name: prime-intellect-listteammembers description: List members of a team. hints: readOnly: true destructive: false idempotent: true call: platform-user.listteammembers with: team_id: tools.team_id outputParameters: - type: object mapping: $.