There are many, many international agreements - decades and in some cases centuries of them - that are effective, and new ones all the time. The UN Security Council has great power - that is why countries work so hard to promote or defeat Security Council decisions.
The ICC has been effective - warlords know that they can, in many cases in wartime, murder people with impunity, and in the past that was the end of it. But now they know that will be liable forever after, subject to arrest, trial and imprisonment, branded an international criminal, and unable to travel to ICC signatory states or (I think) to do business there.
No law or system of laws is perfect. Everywhere, some escape them, some manipulate them. But it's not 100% or 0%; the standard is not perfection or a complete waste - otherwise everything humanity does is a complete waste.
But everything depends on you (and me). Do we find ways to make it better, or just idly tear it down? Sitting on the sideline and complaining has become a normal behavior, but there is nobody else - nobody is on the field, except some very bad people.