'Determine if a tool should be loaded into the Galaxy tool panel.  Examples of valid tools that
should not be displayed in the tool panel are datatypes converters and DataManager tools.'

def set_add_to_tool_panel_attribute_for_tool(self, tool, guid, datatypes):

    if hasattr(tool, 'tool_type'):
        if (tool.tool_type in ['manage_data']):
            return False
    if datatypes:
        for datatype_dict in datatypes:
            converters = datatype_dict.get('converters', None)
            if converters:
                for converter_dict in converters:
                    converter_guid = converter_dict.get('guid', None)
                    if converter_guid:
                        if (converter_guid == guid):
                            return False
    return True
