How to create tool animations in blender?

Hello, I’m currently trying to create tool animations using blender, but I’ve been noticing no tutorials that help you animate tools/items and getting them to work (in game) from Blender, I’ve looked around the dev forum and it seems like no one has asked this question before, if anyone could provide a comprehensive tutorial on animating tools/gears (and them exporting the animations) in blender it would be greatly appreciated!
To provide some extra context, I want to create some attacking animations for my sword tool in blender.