add an action for getting the type of a list.