The township solicitor, when directed or requested so to do, shall prepare or approve any bonds, obligations, contracts, leases, conveyances, ordinances and assurances to which the township may be a party. The township solicitor shall commence and prosecute all actions brought by the township for or on account of any of the estates, rights, trusts, privileges, claims or demands, as well as defend the township or any township officer against all actions or suits brought against the township or township officer in which any of the estates, rights, privileges, trusts, ordinances or accounts of the township may be brought in question before any court in this Commonwealth and do every professional act incident to the office which the township solicitor may be authorized or required to do by the board of supervisors or by any resolution. The township solicitor shall furnish the board of supervisors, upon request, with an opinion in writing upon any question of law.
53 P.S. § 66103