Erica Howton, FamilySearch has the Margaret Barclay who was Christened 31 Oct 1685 in Dalry, Ayrshire, as the daughter of John Barclay.
https://www.familysearch.org/ark:/61903/1:1:XY2S-P46
But it has Margaret, the daughter of John Barclay & Elizabeth Balvaird, being Christened 20 Apr 1686 in Inveresk and Musselburgh, Midlothian.
https://www.familysearch.org/ark:/61903/1:1:X1YT-CMQ
There are also 4 other children Christened in the same place.
https://www.familysearch.org/search/record/results?count=75&que...
I can't pull up the sources that you attached from MyHeritage, so I can't compare it with what FamilySearch has. Wondering if you could look into this?
Let me know & I can make any corrections & add the other children to John Barclay & Elizabeth Balvaird.