Why is scrutiny and legal advise necessary for ministerial works?

Each ministry has a number of departments which perform different tasks designated to them under the Constitution of India. In order to appear or apply before these department, documents need to be scrutinised thoroughly as mostly these works are done on appointment basis due to the authorities being already overburdened.