The seed is anthelmintic, diuretic and laxative. It is used in the treatment of oedema, oliguria, ascariasis and constipation. The seed contains small quantities of the hallucinogen LSD. This has been used medicinally in the treatment of various mental disorders. Source: https://pfaf.org/
Find more about this plant on Wikipedia.