A 14-year-old boy in northwestern Greece prepared to attack the classmates he said had tormented him, the police say.
He researched school shootings online, bought a combat knife and paid a stranger for a gun that never arrived.
Counterterrorism officers stopped the plan before anyone was hurt, the Greek daily Kathimerini reported.
Greek media called the case unprecedented for a country with some of Europe's strictest gun laws.
The investigation began with a warning from a foreign agency that someone on Telegram had said he intended to carry out a mass armed attack.
Officers traced the account to the boy, a middle school student in the mountainous Epirus region. His father had already gone to the authorities because he was worried about the people his son was in contact with on his phone.
The boy told the police his targets were 10 to 15 students who regularly cursed at him, hit him and threw things at him to humiliate him.
According to the reports, he wanted firearms, combat gear and a helmet camera so he could film the attack and post it online before surrendering.
When officers asked whether he could have gone through with it, he reportedly said he might have backed down. Otherwise, he said, he would have threatened the students or shot them in the legs.
The police said they found no evidence of radicalization.
They described the case as an escalation toward targeted violence fueled by revenge for years of bullying.
A juvenile prosecutor has ordered a psychiatric evaluation and a social services investigation.
Studies have found that in Greece, reported rates of involvement in the phenomenon ranged from 26 to 41%, much higher compared with other countries.