You are thinking of the "servant" figurines placed in tombs to perform all kinds of manual work on behalf of the deceased person in the afterlife. These figurines are variously called ushabtis,...
The Mummy shaped figures you are talking about may be "Shabtis." These were small statues placed in a tomb with the body. They were in the form of humans, also mummified, and served as slaves or...