Grind them with chillies, tamarind and coconut to a smooth paste adding very little water.
Heat remaining oil and fry onion till they turn slightly brownish.
Add potato cut into cubes, clams and fry for a minute.
Add 1/2 cup water and cook for around 10 mins.
Now add ground masala, salt and cook till all water is absorbed and a dry dish is got.
Serve hot with rice as a side dish.
Notes
It is lot of fun if few of the shells are left intact while using for cooking. My mom never adds potato to this dish, but few people like it with potato.