In a pan add little oil and roast the urad dal, red chili and tamarind, till the dal turns golden brown. Keep it aside.
In the same pan add the onions(take the skin of the onions) and garlic.
Roast till golden brown. Keep it aside. Roast in a small flame.
Add in the roughly chopped carrots. Cook in a low flame for 5 minutes.
When everything is cool, grind urad dal, red chilli, tamarind, onions, garlic and carrots along with salt into a fine paste. You can add water while grinding.