Timing does most of the work. Raccoons are active at dusk and through the night and make a heavy, deliberate scrabbling. Squirrels are daytime, lighter and faster, and often frantic because they cannot climb back out. Birds chatter, and a rhythmic mechanical rattle that rises when you open the damper is chimney swifts. A torch up past the damper settles it most of the time, and knowing before you call means the right person turns up.
Sometimes, and one case is worth knowing: a squirrel above the damper will often climb a heavy rope lowered down the flue and left overnight, which gives it the grip a smooth liner does not. What you should not do is open the damper and hope, or attempt anything with a raccoon — a cornered one in a confined space is a genuine hazard, and a mother with young will not leave. Birds may be protected, which makes it a legal question as well as a practical one.
Because it does not work and it makes things worse. Animals in a flue usually cannot get down past the damper or climb up a smooth liner, so a fire underneath kills them where they are — leaving a carcass, a smell that lasts months, and a blocked flue. With a protected species it is also illegal. And nesting material above a lit firebox is exactly how chimney fires start.
Clearing an abandoned nest and fitting a cap is a modest half-day visit. Live removal of a raccoon or squirrel costs more because it takes longer, needs the right equipment and sometimes a licensed wildlife operator. What you should not accept is a quote for removal with no cap — the flue that attracted them has not changed, and you will be booking this again.
A stainless cap with mesh sides, fitted properly. That is the entire answer. The mesh keeps birds and squirrels out while letting the flue draw normally, and a good stainless cap outlasts several generations of whatever would otherwise move in. If you take one thing from this page: the removal is temporary and the cap is the fix.