McGrath finished his Test career the same way he started it, picking up a wicket by fooling a batsmen with a simple sleight of hand.
His final victim was tailender James Anderson, who failed to pick McGrath's slower ball and spooned a simple catch to Mike Hussey at mid-on, ending England's innings.
"I guess if you had to write the script for the perfect ending obviously to get a wicket on your last ball of test cricket is the perfect way to do it," McGrath told a news conference at the Sydney Cricket Ground on Friday.
"Obviously seeing off stump cartwheel back 10-15 metres is probably the perfect scenario but a slower ball caught at mid-on, I guess I'll take that."