This is a sequence of three perfect verbs, so strictly speaking that would mean they function as statements. That is, the psalmist is appealing to God’s past investigations that have found innocence. David points to how thoroughly God knows him.
But the case can be made for understanding these perfects as precatives, which are the same form as the Hebrew perfect, but occur in contexts where they serve in the function of beseeching or requesting,1 and thus should be read as commands (imperatives). In support of this suggestion is the fact that in Psalm 17:1 there are three imperatives, and in Psalm 17:2 there is the jussive (an imperative in the third-person: “Let your eyes behold the right!).2,3 It is as though David is then inviting not merely investigation but also pressure—the kind of trying, testing, and visitation of which Job had a horrific experience (see Job 7:18; Job 23:10; Job 34:36).
4
3 You have tried my heart, you have visited me by night, you have tested me, and you will find nothing; I have purposed that my mouth will not transgress.