Hi i have a question about my engine.

I have 121 1977 which is the same as RX5 but have piston engine (Mazda VC engite 1.

. So i bought another piston engine which been rebuild about 6 years ago but been used for about 500km and then was sitting in the shed for next 5 and a half years. What you will recommend me to do with it. I have no experience in rebuilding or doing anything with engines (max what i done it swaped gearbox on my SP20).
So is it safe to put it in my car or it better to take it apart and rebuild it again. Or better to take mine out and rebuild it while using other?
How hard is to rebuild engine and what kind of tool i will need for it?