Chicago officials summarily rejected President Trump's advice Monday to use "stop and frisk" policing to reduce violence, with the mayor's office calling the president "clueless" and motivated by the fear of losing midterm elections.

Trump urged Chicago to use "stop and frisk" policing at a police convention earlier in the day and offered federal assistance to undo a 2015 legal agreement between the Chicago Police Department and the American Civil Liberties Union.

The office of Democratic Mayor Rahm Emanuel said the city was uninterested in Trump's idea for reducing violent crime.

"Even someone as clueless as Donald Trump has to know stop-and-frisk is simply not the solution to crime," mayoral spokesman Matt McGrath said in an emailed statement.

"Just last week CPD reported there have been 100 fewer murders and 500 fewer shooting victims in Chicago this year, the second straight year of declines — all while we've been making reforms to restore trust with residents," McGrath said. "The fact that he's trotting out this tired rhetoric is another sign he's worried about Republicans in the midterms."

Chicago Police Department spokesman Anthony Guglielmi referred an inquiry to the mayor's office.

Civil libertarians oppose widespread use of "stop and frisk," saying it's wrong for police to search people under a low-bar reasonable suspicion standard.

Opponents of the policy argue that the stops disproportionately impact minorities, result in minor drug possession charges, and have debatable utility — including in New York City, where crime fell after police abandoned widespread "stop and frisk" policing.

Supporters of the policy point out that violent crime, especially murder, increased in Chicago after police abandoned the practice in 2015.

Murder in Chicago peaked in 2016, with 588 deaths. The murder rate has remained high during Trump's presidency, with 551 in 2017 and 419 so far this year.

Chicago police previously used "stop and frisk" frequently. About 250,000 people were stopped and frisked without being charged with a crime in a three-month period in 2014, the ACLU found.

Trump's advocacy of prolific pat-downs follows his years-long criticism of Chicago's high murder rate. Last year, he threatened to "send in the Feds!" to address the city's surge in gun homicides.

"I have directed the attorney general's office to immediately go to the great city of Chicago to help straighten out the terrible shooting wave — want to straighten it out fast," Trump said Monday in a speech to the International Association of Chiefs of Police annual convention in Florida.

"I've told them to work with local authorities to try to change the terrible deal the city of Chicago entered into with ACLU which is [tying] law enforcement's hands and to strongly consider 'stop and frisk,'" he said. "It works and it was meant for problems like Chicago."