daveedka already said this, but I Have to chime in.
Undergravel filters work by pulling the WATER through the gravel. It is not their job to remove the debris.
The debris ( poop etc.) gets pulled down into the water along with the water and you have to take that out by vaccuuming the gravel.
The whole gravel bed, with the water constantly moving through it, provides a home for bacteria which process ammonia out of the water.
So, with a regular under gravel filter provides great bio filtration. Also since it pulls the debris down, the water stays very clear looking. The debris HAS to be vacuumed out is all.
How does the filter pull water through the gravel? It can use an air pump, to create an upward flow through the riser tube. this is the original way.
OR you can put a powerhead on top of the riser tube and pull the water up the tube that way.
ALSO
somepeople turn the same equipment into a Reverse Flow Undergravel Filter.(RUGF)
This circulates the water through the gravel also, but instead of puling it down through, it pushes the water up through the gravel.
This keeps the poop from collecting in the gravel. Then you use a Hang on Back filter, or something similar, to remove the floating debris from the water.
( thats the "mechanical " filtration)
I ended up with 'gunk' under my filter plate with my first filter( a regular undergravel run by airpump) because I had never even heard of vacuuming thre gravel. I Did have to break it down and start over, but then with vacuuming every week or so, the filter worked well for the rest of the llfe of the tank.( 2 or 3 years) . That was with Goldfish!