And that is where you would be wrong, Khatru. There are a number of things recorded in the Hebrew Scriptures that are distinctly history; then, as is the case with a lot of comparable sources, there is theological, poetical and revelationary material. If you ask me how we know which is which, it is usually down to the style and form of language used, which is where we need literary critics to guide us.
We also get a lot from archaeology, which, as it turns out, is no friend of the Bible.
There may be some history regarding names and reigns but for the activities of the heroes of the scriptures, Abraham, Moses, David, Solomon, etc, there is very little that can be relied on.