Cut each pita in half. You'll fold each in half and make a triangle sandwich.
In a small pan, heat the olive oil. Add the thin onion slices and spices. Saute for 2-3 minutes until it gets soft. Add the chopped tomato and tomato paste. Cook on low heat for 5 more minutes. Add parsley and remove from heat.
Heat a grill pan or a separate normal pan.
Fill each pita slice with the composition and fold it in half so you'll get a triangle-shaped sandwich.
Place this on the heated pan and grill for 1-2 minutes on both sides until it gets crispy.