The definition of "sloth" is laziness, or an unwillingness to work hard. It can also be equated to "indolence."
In terms of the context clues, the first one is the fact that "sloth" is compared to "idleness." The second one is the fact that "sloth" is compared to "the doing of nothing."