QUERY TOOL NOT FOUND
# support
b
I created a query tool and defined everything such as the knoweldege base and file ID, but when I talked to the assistant the assistant gave no information. Then I tried in chat then I received 'Couldn't Find Local Tool query' so i don't know what went wrong here as I have created and selected the tool issuse occurred: 2024-04-03T07:00:00.000Z https://cdn.discordapp.com/attachments/1357614933407432770/1357614933998571650/image.png?ex=67f0d8ef&is=67ef876f&hm=79314c08ef40902098dd732b8447bff9bdfe118a487765b298a77a66302caab6& https://cdn.discordapp.com/attachments/1357614933407432770/1357614934355345589/image.png?ex=67f0d8ef&is=67ef876f&hm=733e7d5877c7c2d67d242af48e39a172d1943f45a7210591a22847641a614d01&
v
Hi there! I see you're having trouble with your query tool in Vapi. 👋 I'm unable to see the specific details of your implementation, but I can definitely help troubleshoot this "Couldn't Find Local Tool query" error based on common issues other users have experienced. Here are some troubleshooting steps you can try: ### 1. Verify Your Knowledge Base According to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336674769055252594), this error often occurs when there's an issue with the knowledge base document: - Check the 'files' tab to ensure your KB document is still there - Try re-selecting it as the KB source in your agent settings - If the file isn't there, re-upload it and set it as the KB source again ### 2. Check Tool Configuration There might be issues with how your tool is configured: - Ensure the tool's name in VAPI exactly matches what's expected (in this case "query_tool") - Verify that the HTTP method (GET, POST, etc.) you're using matches what's expected - Check if your tool has the correct type specified (e.g., "function" instead of another type) ### 3. Check for Timing Issues According to [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1324353725564715121), there might be a bug or timing issue where the template engine isn't processing variables before the first call is made. ### 4. Tool Selection Process When updating an assistant with a tool, try using the toolID instead of the tool name to enable the tool as mentioned in [this thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338953413886480425). ### 5. Headers and Authentication If your tool requires authentication: - Ensure any required authentication tokens or credentials are correctly set up - Headers should be configured within the "server" object, not under "metadata"
- There might be issues with headers not persisting - you may need to use the API to add them Would you like me to provide more specific troubleshooting steps for any of these areas? Sources: - [Troubleshooting 'Couldn't Find Local Tool query' error](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336674769055252594) - [Timing issues with template engine](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1324353725564715121) - [Tool ID vs tool name](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338953413886480425)
k
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
2 Views