This is characteristic of unique items. For example, the Gloves of Spell Mastery have the Control Magic ability tagged onto them. Therefore, to invoke the spell that is given, there is a mana cost. So when creating abilities, you simply add a mana cost, given that they are active. However, I'm not sure about the state of autocast abilities when bound to an item like that.