As the amount of educational games on the market increases it becomes daunting task for pedagogues to find the most relevant and effective educational games for their teaching activities. In 2012 a metadata model was suggested to streamline descriptions of educational games for a database. This thesis identifies the need for an advanced search function which takes into consideration the notions of purpose and contextual circumstance of using educational games in order for such a database to be of greater usefulness for users. This thesis presents a design of such a search function, based on the theories of Purushotma (2005), Pannese and Carlesi (2007), Charsky (2010) and Reinders and Wattana (2011). Furthermore this thesis provides an updated metadata model to support such a search function. In the future the search function could be polished from a usability perspective and further developed to incorporate other types of serious games.