Coordination and chemical effects on the structural, electronic, and magnetic properties in Mn pnictides