James makes it clear what works he views as important:
26 If anyone thinks himself to be religious, and yet does not bridle his tongue but deceives his own heart, this man’s religion is worthless. 27 Pure and undefiled religion in the sight of our God and Father is this: to visit orphans and widows in their distress, and to keep oneself unstained by the world
The Sin of Partiality
2 My brethren, do not hold your faith in our glorious Lord Jesus Christ with an attitude of personal favoritism. 2 For if a man comes into your assembly with a gold ring and dressed in fine clothes, and there also comes in a poor man in dirty clothes, 3 and you pay special attention to the one who is wearing the fine clothes, and say, “You sit here in a good place,” and you say to the poor man, “You stand over there, or sit down by my footstool,” 4 have you not made distinctions among yourselves, and become judges with evil motives? 5 Listen, my beloved brethren: did not God choose the poor of this world to be rich in faith and heirs of the kingdom which He promised to those who love Him? 6 But you have dishonored the poor man. Is it not the rich who oppress you and personally drag you into court? 7 Do they not blaspheme the fair name by which you have been called?
8 If, however, you are fulfilling the royal law according to the Scripture, “ You shall love your neighbor as yourself ,” you are doing well. 9 But if you show partiality, you are committing sin and are convicted by the law as transgressors. 10 For whoever keeps the whole law and yet stumbles in one point, he has become guilty of all. 11 For He who said, “ Do not commit adultery ,” also said, “ Do not commit murder .” Now if you do not commit adultery, but do commit murder, you have become a transgressor of the law. 12 So speak and so act as those who are to be judged by the law of liberty. 13 For judgment will be merciless to one who has shown no mercy; mercy triumphs over judgment.
The Tongue Is a Fire
3 Let not many of you become teachers, my brethren, knowing that as such we will incur a stricter judgment. 2 For we all stumble in many ways. If anyone does not stumble in what he says, he is a perfect man, able to bridle the whole body as well. 3 Now if we put the bits into the horses’ mouths so that they will obey us, we direct their entire body as well. 4 Look at the ships also, though they are so great and are driven by strong winds, are still directed by a very small rudder wherever the inclination of the pilot desires. 5 So also the tongue is a small part of the body, and yet it boasts of great things.
Things to Avoid
4 What is the source of quarrels and conflicts among you? Is not the source your pleasures that wage war in your members? 2 You lust and do not have; so you commit murder. You are envious and cannot obtain; so you fight and quarrel. You do not have because you do not ask. 3 You ask and do not receive, because you ask with wrong motives, so that you may spend it on your pleasures. 4 You adulteresses, do you not know that friendship with the world is hostility toward God? Therefore whoever wishes to be a friend of the world makes himself an enemy of God. 5 Or do you think that the Scripture speaks to no purpose: “He jealously desires the Spirit which He has made to dwell in us”? 6 But He gives a greater grace. Therefore it says, “ God is opposed to the proud, but gives grace to the humble .” 7 Submit therefore to God. Resist the devil and he will flee from you. 8 Draw near to God and He will draw near to you. Cleanse your hands, you sinners; and purify your hearts, you double-minded. 9 Be miserable and mourn and weep; let your laughter be turned into mourning and your joy to gloom. 10 Humble yourselves in the presence of the Lord, and He will exalt you.
Indeed...