#showtooltip
/cast [target=player] Master's Call
/petdefensive
/stopmacro [modifier]
/petpassive
Haven't tested in-game, but syntax should work. Without a modifier (shift, ctrl or alt), it will run through the entire macro, with petpassive being set last.
With a modifier, it should stop running the macro after setting it to petdefensive.