Job Description of an Attorney General. In the United States, the office of the attorney general acts as the chief legal officer for the state or territory, and one attorney general acts on behalf of the federal government. An attorney general advises his government's top executive and represents the government in civil and criminal legal matters.