Interesting...is the "tips" of the chains part documented?
From reading this that doesn't appear to be the case:
https://en.bitcoin.it/wiki/Protocol_specification#getblocksIt looks like it gives you the 10 most recent hashes and then starts skipping in greater and greater intervals back to the genesis. It gives a pseudo code implementation there.