code: def get_model(self):
          
  
          return ToolModel(
              name=self.name,
              version="0.0.0",
              parameters=self.parameters_from_dicts(self.parameters)
          )
docs: Gets the mongoengine model for this tool, which serializes parameters that are functions
  
          :return: The mongoengine model. TODO: Note that the tool version is currently incorrect (0.0.0)