Only filter tools if type param is valid