add query tool