This question already has an answer here:
I am building a tool in Java to fetch all the metadata from Salesforce using the Tooling API.
For Ex: I want to fetch all the profiles details including object-permission, field-premission, recordtype settings, tab setting etc. using Tooling API.
Can anyone suggest me how to fetch all these details using Tooling API?