A 13-year-old boy has pleaded guilty to possessing an air weapon with intent to cause fear of violence and having an axe at a Lincolnshire school.
Magistrates imposed reporting restrictions on the identification of the defendants and the precise location of the secondary school.
Police were called to the school in the south of the county just after 9am on Monday 13 November after staff dealt with an incident involving a teenage pupil.
Lincolnshire Police confirmed they arrested a 13-year-old boy after being called to the secondary school at 9.12am.
No one was injured during the incident and the school was not closed.
The 13-year-old boy, who cannot be named because of his age, appeared at Lincoln Youth Court on Friday, January 12.
Wearing a navy blue tracksuit, the boy pleaded guilty to possessing an axe on school premises on November 13 last year.
The boy also pleaded guilty to a second charge of possessing an air weapon with intent to cause fear of unlawful violence to another person on the same date.
District Judge Peter Veits adjourned sentence on the boy for the preparation of a report by the youth offending service.
The boy was remanded in to secure custody until January 26, when he will be sentenced at Lincoln Youth Court.