According to legend, the temple was consecrated by sage agastya and the name of the village was originally agastyaputtur but it seems to be just the Sanskritization of the word.
The legend states that the temple was consecrated by sage Agastya, and the village's name is believed to have originated from a Sanskrit adaptation of the word "agastyaputtur."