This could be many things. If the ac system has never been serviced before it could simply need a recharge. Its is common and normal for an ac system to lose freon over many years and if your car has not been serviced since it was new then this could very well be the issue. A simple test of the system would find out what is wrong.
RepairPal Certified shops can diagnose and repair your 2005 Scion tC. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.