Consistency is key for sambar and it has to be slightly thick when compared to the rasam. To improve consistency, you may add more cooked dal, or even use cooked vegetables to mash it. Additionally, you may add rice flour or gram flour (besan) too.