code: def _get_tool_str(self, tool):
          
          res = tool['file'] 
          try:
              res += '.' + tool['function']
          except Exception as ex:
              print('Warning - no function defined for tool ' + str(tool))
          res += '\n'
          return res
docs: get a string representation of the tool