This summary is not the rule. The rule text controls.
If someone files a claim against you, whether it's a lawsuit, a counterclaim, or a cross-claim, you can ask the court to rule in your favor without going through a full trial. This is called a motion for summary judgment. You can file this motion at any point in the case.
The idea behind this rule is simple. If you believe there's no real dispute over the important facts, and the law is clearly on your side, you don't have to wait for trial to win the case. You can ask the judge to decide the matter early based on the evidence already available, like documents or written statements. You also have the option to include sworn statements (affidavits) to back up your request, but you're not required to.
This motion can cover the entire claim against you or just part of it. For example, if someone sues you for several reasons, you could ask the court to dismiss just one of those claims through summary judgment, even if the rest of the case continues. This gives you flexibility to challenge weak parts of a case without needing to wait until trial.