Query tool
# support
a
I'm reaching out to report an issue we're encountering with the Query Tool. At the moment, every time we run a query, the tool returns a "success" status, but no actual data or information is being returned. { "name": "COBERTURAS_RAC_TRAVEL_PREMIUM_PUNTUAL", "role": "tool_call_result", "time": 1743322185010, "result": "Success.", "toolCallId": "call_17s5l8RSWgAMizBwbQazJNn4", "secondsFromStart": 181.417 }
v
Hi there! 👋 I see you're having an issue with the Query Tool returning a "success" status but no actual data. I don't have specific information about what "COBERTURAS_RAC_TRAVEL_PREMIUM_PUNTUAL" is supposed to return, but I can definitely help troubleshoot why your Query Tool is returning success without any data. Based on the information I've found, here are some potential reasons for this issue: ## Possible Causes 1. **System Issues**: This could be due to a [temporary system glitch or a recent update affecting functionality](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1265637856383078461). 2. **Configuration Problems**: Your tool might be misconfigured. According to [documentation I found](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341644251510997083), "metadata fields are not meant for request configuration" and "headers should always be configured within the server object." 3. **Data Retrieval Issues**: The tool might be [failing to access the relevant data](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341745208055828572), even though the query executes successfully. 4. **Response Format Issues**: The [tool call response might be in the wrong format](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729). JSON responses need to be stringified, and the correct format should be:
Copy code
json
{
  "results": [
    {
      "toolCallId": "<your-tool-call-id>",
      "name": "<your-function-name>",
      "result": "Success" // Or any success message
    }
  ]
}
## Troubleshooting Steps Here are some steps you can take to resolve this: 1. **Check Basic Configuration**: - [Verify the URL and Tool Name](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335141023600480318) - Review the HTTP method (GET, POST, etc.) - Check any API keys or authentication
2. **Inspect Response Handling**: - Ensure the
toolCallId
matches what VAPI expects - Verify there are no formatting issues in the JSON response - Check that the content-type is set to
application/json
3. **Review Logs**: - [Examine scenario logs](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335141023600480318) for errors - Check server logs for warnings or errors 4. **Test Isolation**: - Try setting up a simple tool call with minimal parameters - Manually access the endpoint to see if the response is as expected 5. **Check for Known Issues**: - There might be a [bug related to asynchronous tool calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342336047589359618) always returning success - VAPI might not process messages from Status 400-500 responses Is there any specific part of this troubleshooting process you'd like me to elaborate on? Sources: - [Discord Thread about System Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1265637856383078461) - [Discord Thread about Configuration Problems](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341644251510997083) - [Discord Thread about Data Retrieval Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341745208055828572) - [Discord Thread about Response Format Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729) - [Discord Thread about Basic Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335141023600480318) - [Discord Thread about Asynchronous Tool Calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342336047589359618)
a
This is the function: { "id": "6cee2b89-82d1-4bde-b5f8-0d667931d049", "createdAt": "2025-03-28T08:00:43.779Z", "updatedAt": "2025-03-30T08:38:47.889Z", "type": "query", "function": { "name": "COBERTURAS_RAC_TRAVEL_PREMIUM_PUNTUAL", "strict": false, "description": "Utiliza esta función para saber garantías, coberturas, capitales, exclusiones,... del producto RAC Travel Premium Puntual", "parameters": { "type": "object", "properties": {}, "required": [] } }, "messages": [ { "type": "request-start", "content": "Voy a buscar en las condiciones generales del producto. Un momento por favor.", "blocking": false }, { "role": "assistant", "type": "request-complete", "content": "Ya lo he encontrado", "endCallAfterSpokenEnabled": false }, { "type": "request-failed", "content": "No he encontrado respuesta a tu pregunta. ¿Quieres que te pase con una operadora?", "endCallAfterSpokenEnabled": false }, { "type": "request-response-delayed", "content": "Estoy tardando mucho en encontrar una respuesta. ¿Quieres que te pase con una operadora?", "timingMilliseconds": 5003 } ], "orgId": "9f460bfd-62d6-45fa-997b-a8f989057824", "async": true, "knowledgeBases": [ { "name": "RAC_TRAVEL_PREMIUM_PUNTUAL_knowledge_base", "provider": "google", "model": "gemini-1.5-flash", "description": "En este archivo están las condiciones generales de la póliza de asistencia del producto RAC Travel Premium Puntual", "fileIds": [ "b8b50810-6c0d-4f7a-963d-0d5740c65150" ] } ] }
a
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
a
call_17s5l8RSWgAMizBwbQazJNn4
a
Hey Adrian, it's a tool call ID, not a call ID. If you go to the VAPI dashboard and then to the observe section on the left side of the dashboard, you will find a page called call logs. Click on it will show you all of the call logs. You can give me the recent call ID from there.
15 Views