What Are Tools Anyway? A Survey from the Language Model Perspective