naftiko: 1.0.0-alpha2 info: label: Knowi Management API — Groups description: 'Knowi Management API — Groups. 8 operations. Lead operation: List groups. Self-contained Naftiko capability covering one Knowi business surface.' tags: - Knowi - Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: KNOWI_API_KEY: KNOWI_API_KEY capability: consumes: - type: http namespace: management-groups baseUri: https://knowi.com/api/1.0 description: Knowi Management API — Groups business capability. Self-contained, no shared references. resources: - name: groups path: /groups operations: - name: listgroups method: GET description: List groups outputRawFormat: json outputParameters: - name: result type: object value: $. - name: creategroup method: POST description: Create group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: groups-groupId path: /groups/{groupId} operations: - name: getgroup method: GET description: Get group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updategroup method: PUT description: Update group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletegroup method: DELETE description: Delete group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: users-userId-groups path: /users/{userId}/groups operations: - name: listusergroups method: GET description: List user groups outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createusergroup method: POST description: Create group for user outputRawFormat: json outputParameters: - name: result type: object value: $. - name: users-userId-groups-groupId path: /users/{userId}/groups/{groupId} operations: - name: removeusergroup method: DELETE description: Remove group from user outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string required: true - name: groupId in: path type: string required: true authentication: type: bearer token: '{{env.KNOWI_API_KEY}}' exposes: - type: rest namespace: management-groups-rest port: 8080 description: REST adapter for Knowi Management API — Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/groups name: groups description: REST surface for groups. operations: - method: GET name: listgroups description: List groups call: management-groups.listgroups outputParameters: - type: object mapping: $. - method: POST name: creategroup description: Create group call: management-groups.creategroup outputParameters: - type: object mapping: $. - path: /v1/groups/{groupid} name: groups-groupid description: REST surface for groups-groupId. operations: - method: GET name: getgroup description: Get group call: management-groups.getgroup outputParameters: - type: object mapping: $. - method: PUT name: updategroup description: Update group call: management-groups.updategroup outputParameters: - type: object mapping: $. - method: DELETE name: deletegroup description: Delete group call: management-groups.deletegroup outputParameters: - type: object mapping: $. - path: /v1/users/{userid}/groups name: users-userid-groups description: REST surface for users-userId-groups. operations: - method: GET name: listusergroups description: List user groups call: management-groups.listusergroups outputParameters: - type: object mapping: $. - method: POST name: createusergroup description: Create group for user call: management-groups.createusergroup outputParameters: - type: object mapping: $. - path: /v1/users/{userid}/groups/{groupid} name: users-userid-groups-groupid description: REST surface for users-userId-groups-groupId. operations: - method: DELETE name: removeusergroup description: Remove group from user call: management-groups.removeusergroup with: userId: rest.userId groupId: rest.groupId outputParameters: - type: object mapping: $. - type: mcp namespace: management-groups-mcp port: 9090 transport: http description: MCP adapter for Knowi Management API — Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-groups description: List groups hints: readOnly: true destructive: false idempotent: true call: management-groups.listgroups outputParameters: - type: object mapping: $. - name: create-group description: Create group hints: readOnly: false destructive: false idempotent: false call: management-groups.creategroup outputParameters: - type: object mapping: $. - name: get-group description: Get group hints: readOnly: true destructive: false idempotent: true call: management-groups.getgroup outputParameters: - type: object mapping: $. - name: update-group description: Update group hints: readOnly: false destructive: false idempotent: true call: management-groups.updategroup outputParameters: - type: object mapping: $. - name: delete-group description: Delete group hints: readOnly: false destructive: true idempotent: true call: management-groups.deletegroup outputParameters: - type: object mapping: $. - name: list-user-groups description: List user groups hints: readOnly: true destructive: false idempotent: true call: management-groups.listusergroups outputParameters: - type: object mapping: $. - name: create-group-user description: Create group for user hints: readOnly: false destructive: false idempotent: false call: management-groups.createusergroup outputParameters: - type: object mapping: $. - name: remove-group-user description: Remove group from user hints: readOnly: false destructive: true idempotent: true call: management-groups.removeusergroup with: userId: tools.userId groupId: tools.groupId outputParameters: - type: object mapping: $.