Improving Tool Retrieval by Leveraging Large Language Models for Query Generation