def set_add_to_tool_panel_attribute_for_tool( tool, guid, datatypes ):
    """
    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.
    """
    if hasattr( tool, 'tool_type' ):
        if tool.tool_type in [ 'manage_data' ]:
            # We have a DataManager tool.
            return False
    if datatypes:
        for datatype_dict in datatypes:
            converters = datatype_dict.get( 'converters', None )
            # [{"converters": 
            #    [{"target_datatype": "gff", 
            #      "tool_config": "bed_to_gff_converter.xml", 
            #      "guid": "localhost:9009/repos/test/bed_to_gff_converter/CONVERTER_bed_to_gff_0/2.0.0"}], 
            #   "display_in_upload": "true", 
            #   "dtype": "galaxy.datatypes.interval:Bed", 
            #   "extension": "bed"}]
            if converters:
                for converter_dict in converters:
                    converter_guid = converter_dict.get( 'guid', None )
                    if converter_guid:
                        if converter_guid == guid:
                            # We have a datatypes converter.
                            return False
    return True