The most important factor for collaborative learning to be effective is the selection of tools that constitute groups. Grouping is to facilitate collaborative learning, learners form groups based on various characteristics. If a group of students fails to form properly due to the selection of the wrong tools, problems can arise where complaints from students can lead to lectures and the effects of learning. In this paper, we have implemented a group of configuration tools that considered improving learning effects and diagnosing bulling tendency. We have proposed a group composition tool that can take into consideration the learning effect and also diagnose the tendency of the bullring by constructing the group according to the teacher's preference by inputting the class preference and the student's grade through the sociometry survey. We expect that the teacher will be able to grasp the students' friendship in advance and cope with the bulling that can happen in the class, as well as the cooperative learning that can lead the class to improve the learning effect.