Arm of the Law is a 1958 story by sci-fi pro Harry Harrison. The cops in a backwater station on Mars get more than they bargained for in the form of a new ROBOT recruit - sent to them from earth in a box... All kinds of complications, danger and even fun ensue!