Identification of Electrical Component
It looks like a reed switch to me.  If it is a reed switch, then there should be some magnets to activate the switches in the place where it is installed -- perhaps on the shift?