to the toilet? sounds like shes in pain when she does it..taking long time to get comfy to go in the litter tray and stands at the top of the stairs meowing
If your cat is a mail, it's urinary tract could be blocked. This is especially true if he is on a diet of dry foods.
Take him to a vet immediately. If it is as I stated, it's extremely painful.