Query tool only returning 'Success' and nothing el...
# support
s
Chat ID: c64d3f0e-0683-4ddd-9c9d-7f2dbf0a26ba Time stamp: Sep 17, 2025 22:03 The response I expected is the chat bot able to retrieve the correct information from the KB and provide it back to the user. The response I received looks like it is a message 'Success' with no other details. I have uploaded a JSON file and added it to query tool so that it can look up information in the file by matching the provided ID to the same ID in the KB. I was debugging on the calls but it seemed to provide more information on the chats and I could see the function calls. I have even asked the AI assistant questions on other chats and this is what is said - "You are right to ask for clarification. The actual response from the query_triumph_physio_business_data call was simply "Success." without any detailed data included in the message. This means I did not receive the specific business, appointment type, or practitioner details from that call." https://cdn.discordapp.com/attachments/1417845520587686000/1417845520940011580/image.png?ex=68cbf70a&is=68caa58a&hm=1343b8b0a9cd74bc976c7360d23220bf940cf0bd75a8386811116f5b4b7b6431&
v
Suggestion: Check that your query tool's response is mapped to return the actual data from your knowledge base, not just a generic message. In your tool's server response, ensure you return the result in this format:
Copy code
json
{
  "results": [
    {
      "toolCallId": "YOUR_TOOL_CALL_ID",
      "result": { "your_expected_data": "value" }
    }
  ]
}
Update your server or tool configuration to include the detailed data in the
result
field, so the assistant can access and relay it to the user.
Source: - [Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
c
Please disable
async
option on your tool and it should produce the results from the tool
s
Im facing the same issue and I didnt set async in this tool
Copy code
json
"tools": [
            {
                "type": "query",
                "function": {
                    "name": "knowledge-search"
                },
                "knowledgeBases": [
                    {
                        "name": "assistant-kb",
                        "fileIds": [
                            "cad40fc4-a12e-4d18-bd01-4d356ade0e76"
                        ],
                        "provider": "google",
                        "description": "Contains comprehensive information about the company, its products, services, policies, and procedures. Use this knowledge base to provide accurate and relevant information to customers."
                    }
                ]
            }
        ]
@Shubham Bajaj
s
The query tool on the online dashboard does not seem to have an option to disable or enable the async option? Do I need to update config via code?
c
There is currently no option for
async
for the query tool
4 Views