In the Tantric pantheon, Kali is mentioned as the first of the ten Great Cosmic Powers, because in a certain way she is the one who "spins the wheel of the universal time".
On the other hand, at the end of the manifested world, time (in Sanskrit Kala) devoured all the universes of the three plans of the creation: the physical, the astral and the causal universes.
The Great Cosmic Power Kali finally devours the time itself, which is Kala, and this is the very reason for which Kali is viewed as the primordial cause of the creation and destruction of the universe.
The famous Tantric writing Nirvanatantra associates Kali to Brahman, the Supreme, as representing both the being (the existence) and the infinite consciousness in manifestation.
This association has allowed the worship of Kali both from the metaphysical abstract perspective, as well as from a more concrete perspective, which implies certain attributes (functions, characteristics, qualities).
According to the Tantric tradition, the whole manifested world springs from the Infinite Consciousness of the beatific union between Shiva and Shakti.
The function of the creation comes to the divine energy bearing the name Brahmani Shakti. The universe thus created has to be maintained in the manifestation, function performed by Shakti Vaishnavi.