Magsafe charger behaving strange
You are nearing the expected cycle count for a battery. According to Apple, your model of MacBook Pro is expected to last for 1000 cycles. You could try swapping the MagSafe charger, but I suspect that the battery is ready to be replaced.

Apple Support - Determining battery cycle count