Whenever any person shall be brought before any district court, charged with any offense which it has not jurisdiction to try and determine, and, after hearing all the evidence adduced in relation to it, it shall not appear to the district court that the accused is probably guilty of the offense, or of any other offense substantially charged in the complaint, the accused shall be immediately discharged.
R.I. Gen. Laws § 12-10-5