I was also playing around with that idea, but didn't get a good result
Magneton is used to trap skarm, which is mostly an issue for physical offense. Rain teams are special attacking, so rather use dugtrio to trap Blissey and/or Jirachi.
Since you are running spikes I would also consider...