I can't fathom how someone can see sacraments as works. We simply submerge someone in water, and God adopts that person as an heir. We anoint them with chrism, and the Holy Spirit descends and dwells in that person. We bring bread and wine and God transforms them into His own body and blood. We anoint with oil and God provides healing of soul and body. A Bishop lays his hands on someone, and God makes that man a priest, sharing in the high priesthood of Christ. We lay crowns on the heads of a man and woman and God joins them into one flesh. These are miracles, not works. Who could boast about their role in this? Even as a priest, I know that my role in all of these is nothing without the grace of God filling the sacrament. If anything, sacraments are the very definition of good works that God prepared for us that we should walk in them. God makes them sacraments, we simply receive the gift with thanksgiving. We must actively embrace the grace given with faith and love, and in that sense it is not magic, but it is God who fills these actions with grace, not us, so it can never be a work.