So was Carcetti for real?

Was he for real about wanting to make the city better? Did he just get screwed over by the education department mismanagement of money, and by what McNulty did? Or was he just another Clay Davis and Royse? Or somewhere in the middle?