fix conditions to display knowledpad tools.