Caramelize the onions in the olive oil and red pepper flakes, about 20 minutes.
Meanwhile, toast the pine nuts in a dry pan, being careful not to burn them.
Toast the bread and generously spread the jam on each slice.
Arrange two pieces of goat cheese on top of the jam, then spoon the caramelized onions on each piece.
Garnish with the toasted pine nuts, raisins and parsley, drizzle with the glaze.