is there a simple way of creating a bone at the end of a chain.
I need it so I can get its pivots xyz position
There is such function in the Bone Tools(which is a script) try macrorecording the code for it.