They are used in high-security to ward off the dragons guarding them. The dragons associate the sound of the Clankers with pain and so flee the vault that they are guarding when they hear the sound. They are used by the goblin employees at Gringotts in order to access certain vaults.