That is just plain bassackwards.
The tip comes after the service, and the quantity is reflected by the quality.
The wait person goes in expecting a particular percentage, and presumably bases their service level on that. If they fall short, so will the tip; if they excel, so will the tip.
It is up to them to EARN the expected percentage, otherwise it really is a "gratuity": given gratuitously, without reason or merit.