Okay, I'm not all that seasoned of a player, but I remember having the same question. The answer is this:
There are two styles when you go through the clockworks. The first is when you go through with a party of up to four players. This has benefits that I'm sure you have noticed, the main being that they can revive you.
The second style is solo. This is when you go through by yourself. This is seen as easier by some players because monsters have much less health. But you better not die... Since no one can revive you, and you'll have to use energy.
Now, in a non-random party (such as a guild Jelly King run or something with friends), things will commonly be coordinated. One person will be a bomber (one is usually essential for any boss run, especially JK), and the other three will most likely be swordmasters. Gunners are usually rare. Also, pure swordmasters are rather rare, as they are disadvantaged without some long-range weapon. Generally, one gun is advised.
Now, if you are usually going solo, you NEED a sword (unless you're a seasoned pure player of another type, but that's different). You also can choose from either a gun or a bomb. If you have another weapon slot, usually another sword goes there.
Usually, someone has a sword and either a gun or a bomb. I would not recommend a gun and a bomb with no sword, since you are disadvantaged for close combat, and guns and bombs cause way less damage. I, for example, have a sword and a gun. As you progress through the game, you may find your hidden talent for bombing, or maybe even gunning. But generally, no one specializes in one thing.
"End game", as you call it, is probably tier 3. The game doesn't end, that's just the highest you can go. By that time, most likely you will have multiple swords, and will start upgrading different guns or bombs.
But to answer your question, no. It is really not necessary to specialize. The game is easier than you think. It is a good idea to specialize if you are going with a coordinated party, but as you start out, you'll usually tag along behind the big guns (which are actually swords in this game).
Hope that helped!