Sounds a lot like an old thermal fuse link, probably off a water heater, furnace, or some kind of heating appliance. Those are ceramic tubes with metal caps and a single pigtail wire, and they were common on older equipment as a safety cutoff. If the temp inside the appliance got too high, the link would open and kill the circuit. The 20A stamp would fit too, since they were rated for a current limit along with a temperature rating that's usually faded off first. I've pulled a few of these out of older water heaters and garage heaters over the years. They always end up in the bottom of the van because you replace one, toss the part in the drawer, and forget about it. The chunky shape throws people off because they expect a fuse to look like the little glass ones or the cartridge style that goes in a fuse holder. The pigtail is the giveaway. Cartridge fuses for panels don't have leads, they just make contact end to end. Easy way to confirm it: put a meter across the two metal caps and check for continuity. If it's open, it did its job at some point and that's probably why it came out of whatever it was in. If it's still closed, it was likely just a spare that never got used.
Either way it's a one-shot part. Once it opens you replace it, you don't reset it. And since the markings are gone you've got no way to know the temperature rating anymore, so I wouldn't put it back into service on anything even if it tests fine. It's a junk bin item at this point, but at least you can stop wondering about it. My money's on it came off a job where someone swapped out an old limit control or water heater thermostat and the old link rolled into the drawer.