The City Attorney's Office fulfills the functions identified in Gilroy City Charter Section 804.
"City Attorney: Powers and Duties":
The City Attorney shall have the power and be required to:
a) Represent and advise the Council and all City officers in all matters of law pertaining to their offices;
(b) Represent and appear for the City in any or all actions and proceedings in which the City is concerned or is a party, and represent and appear for any City officer or employee or former City officer or employee in any or all actions and proceedings in which any such City officer or employee is concerned or is a party, for any action arising out of his employment or by reason of his official capacity;
(c) Attend all meetings of the Council and give his advice or opinion in writing whenever requested to do so by the Council or by any of the boards or officers of the City;
(d) Approve the form of all bonds given to and all contracts made by the City, endorsing his approval thereon in writing;
(e) Prepare all proposed ordinances, contracts and other legal instruments for the City;
(f) Prosecute on behalf of the City all cases for violation of the Charter, City ordinances and other City laws and regulations;
(g) Perform such other legal duties consistent with this Charter as may be required of him by the Council; and
h) Upon vacating the office, surrender to his successor all books, papers, files and documents pertaining to the City’s affairs.