Jumping spiders need more room in my opinion. Preferably something with height. Give it plenty of upright limbs, etc... feed it small flies, crickets, or other prey items of the such. Don’t feed it ants.
Yeah, I mean... it would work. What you should do however, is research jumping spider species as a whole. Then try to mimic their environment and how they interact, hunt, what they eat, etc.. This will give you a better idea of what you need to do in the form of husbandry and ensure your specimen lives a happy healthy life. Strangers on the internet can only give you so much info. Especially on a species that isn’t common to the hobby. Doing your own research and observation will tell you how to properly keep it. And no.. I don’t think it will eat earth worms.