Grind tomato, onions,shallots, tamarind, red chilies and salt to a fine paste
Add oil in a kadai, when its hot splutter mustard seeds, urad dal ,curry leaves and finally the tomato mixture and stir well
Saute it till the paste is cooked and the mixture thickens
Serve hot with idlis,dosais etc