Two temples in Kuala Lumpur. Batu Caves has 4 tickets and tours to book; Putra Mosque (Masjid Putra) has no online ticket listed. The table and the two notes below put them side by side; the full pages have what to see, the ticket and the timing for each.
The main sight at Batu Caves, the Temple Cave at the top of the great staircase, is free to enter, so you do not need a ticket. A few side attractions at the foot of the hill, such as the Ramayana Cave and the Cave Villa, charge a small fee paid at their own doors.
That means the tours sold online are about transport, company and context. The most popular are half-day trips from Kuala Lumpur by car or minivan with a guide, often combined with other places of worship in the city: the Chinese Thean Hou Temple, the National Mosque and the Sri Mahamariamman temple in Chinatown.
Entry to the Putra Mosque is free, and there is nothing to book in advance. Non-Muslim visitors use a separate visitor entrance at the side of the mosque, where volunteers lend hooded robes to anyone whose clothing is not suitable and sometimes offer a short explanation of the building and of Islam. Visiting is only possible during set hours outside the prayer times.
The mosque stands in Putrajaya, the federal government centre about 25 km south of central Kuala Lumpur, and how you get there is the real decision. The independent route is the KLIA Transit train from KL Sentral to Putrajaya Sentral, about 20 minutes, followed by a local bus or a ride-hailing car to Putra Square.