The Alert Tower can be used to detect enemies and know more information about the attacking troops.
It also has many other functions. With each level you upgrade, you will unlock a new function. You can know more details by clicking on the (!) mark at the right corner of the building interface.