Maybe that's true of "devil's advocate", but Jewish texts often regarded Satan as an agent of God.
The Book of Job is essentially the central and primary text regarding Satan, and it's where God asks Satan about his opinion on Job's piety, then gives Satan permission to torment Job! (eventually killing all of Job's family - the "only" people Satan kills in the whole Bible, and with God's permission!).
https://en.wikipedia.org/wiki/Book_o..._and_in_Heaven