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 story behind the temple's origin suggests it was built by sage Agastya, and its original name may be derived from a Sanskrit word.