OpenAI query tool