Police were scrambled to a McDonald's equipped with riot shields and Taser weapons after reports of a man making threats with a bottle, a court heard.