Public middle schools vary from place to place. For example, middle schools in Tokyo have lunch, while middle schools in Yokohama don't, so they must bring their own meals. There is no free place to serve lunch, and you need to pay.
Private schools, whether primary or secondary, are decided by the schools themselves and are not unified (so they are private and different). Generally speaking, primary schools will have lunch, and middle schools will follow the local public habits. For example, private middle schools in Tokyo have lunch, while those in Yokohama don't.
similarly, there is a charge for providing lunch.
Private schools will have a detailed list of expenses each year, including tuition fees, medical examination fees, equipment use fees, travel fees, lunch fees, examination fees and so on.
there are also public ones.
private meals may be better. All public ones have professional nutritionists to order recipes. It is unified in the whole city, and there will be no situation where the food in this school is good and that school is poor.