Cut the soft tofu into bite-sized pieces.
Place the soft tofu in an oven-safe dish.
Evenly pour tomato sauce over the soft tofu.
Top with mozzarella cheese and parmesan cheese.
Sprinkle with black pepper and parsley.
Bake in a 180°C oven for 10 minutes.
When the gratin is golden brown, take it out and serve.