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"