This might be the dumbest crook ever.

Joel Minaya, 30, pleaded guilty to dealing coke and heroin in 2008 and started working as a confidential informant for the DEA in 2013 but was cut loose by the agency less than a year later.

On Sunday he called a DEA agent for whom he used to work to complain that he had been carjacked by a man who, weeks earlier, had sold him more than $50,000 worth of heroin, court papers state.

So agents told Minaya to come into the DEA’s Chelsea office on Monday to talk about the carjacking — and to bring with him the more than 1.5 pounds of drugs. Minaya foolishly complied, according to the criminal complaint.

“Agents further asked Minaya whether, if had his car not been stolen, he would have sold the heroin in packages without informing law-enforcement agents, and Minaya said yes. At the conclusion of the meeting, agents placed Minaya under arrest,” the complaint states.

Minaya was arraigned Tuesday afternoon in Manhattan federal court.

His defense attorney declined to comment.