Any municipal employee shall be entitled to the opinion of the corporation counsel, city solicitor or town counsel upon any question arising under this chapter relating to the duties, responsibilities and interests of such employee. All requests for such opinions by a subordinate municipal employee shall be made in confidence directly to the chief officer of the municipal agency in which he is employed, who shall in turn request in confidence such opinion of the corporation counsel, city solicitor or town counsel on behalf of such subordinate municipal employee, and all constitutional officers and chief officers or heads of municipal agencies may make direct confidential requests for such opinions on their own account. The town counsel or city solicitor shall file such opinion in writing with the city or town clerk and such opinion shall be a matter of public record; however, no opinion will be rendered by the town counsel or city solicitor except upon the submission of detailed existing facts which raise a question of actual or prospective violation of any provision of this chapter.
Mass. Gen. Laws ch. 268A, § 22