7-4-2716. Duties related to state matters. The county attorney shall:
(1) attend the district court and conduct, on behalf of the state, all prosecutions for public offenses and represent the state in all matters and proceedings to which it is a party or in which it may be beneficially interested, at all times and in all places within the limits of the county;
(2) when ordered or directed by the attorney general to do so, promptly institute and diligently prosecute in the proper court and in the name of the state of Montana any criminal or civil action or special proceeding;
(3) defend all suits brought against the state.