State employee prosecutes any claim against the commonwealth or a state agency, or as agent or attorney for anyone in connection with any particular matter in which the commonwealth or a state agency is a party or has a direct and substantial interest