in the shallow surrounding waters , with just the right mix of warm , clear water and sunlight , coral polyps , tiny cylindrical animals with a mouth and protruding tentacles at one end , performed their geological mission , taking calcium from the water and ultimately depositing it as limestone skeletons that cement together to form the reef .