As the MacBook charging inlet is magnetic in nature, it attracts metal articles like stapler bullet. Please do a first tier check whether there is an external component attracted to the inlet, before bringing your MacBook to the service center.
We use to put our iPhone inside our pocket or handbag. Pockets and handbags have particles like fabric debris which can go into the charging inlet over the time. Again, try to clear the inlet as the first tier measure.