If this is legal then it’s a giant gaping loophole in the system. Not just because it’s easy to harass someone but because it sounds incredibly easy for a cop to call in an “anonymous tip” on someone they suspected of wrongdoing but had no evidence to support it. I’m almost positive the Supreme Court has even held that evidence that was gathered in the course of raiding the wrong building is legal as it’s an “honest mistake”.
The thing I dislike most about code assisting tools is that they’re geared to answering your questions instead of giving advice. I’m sure they also give bad recommendations but I’ve seen LLMs basically double down on bad code.