Help with bird id: St. Andrews

From the US, traveling around Scotland and am thoroughly enjoying viewing many new-to-me bird species. Am currently in St. Andrews and had lovely walk along coast. Spotted this bird perched on rock; Merlin ID says Rock Sparrow -- which is rare for this area. Want to confirm. Can anyone ID based on this photo? Thank you!