It shall be the duty of the City Attorney to prosecute and defend suits for and against the City; to serve as legal advisor to the Mayor, Councilmen and City Manager and other City Officials, if so directed by the Mayor and Council, with respect to the affairs of the City; to draw all legal documents relating to the affairs of the City when requested to do so; to draw proposed ordinances when requested to do so; to inspect and pass on the legality in form of all agreements, contracts, franchises and other instruments with which the City may be concerned; to attend meetings of the Mayor and Council, and to perform such other duties as may be required of him by virtue of his position as City Attorney by said Mayor and Council.