Chat API Tool Call not running
# support
k
Copy code
[
  {
    "id": "e16e22e7-08c4-45a1-a889-41cbf0b36f1e",
    "orgId": "01fc90d6-f3d4-425b-bd2e-5d35728fde87",
    "sessionId": "613c3bbf-aebe-4c2f-a976-37787a559267",
    "input": [
      {
        "role": "user",
        "content": "Get availability again"
      }
    ],
    "output": [
      {
        "role": "assistant",
        "tool_calls": [
          {
            "id": "call_iQQRD0wPlIbAvPhzECqV9K6V",
            "type": "function",
            "function": {
              "name": "get_available_slots",
              "arguments": "{\n  \"region\": \"colorado\",\n  \"leadaddress\": \"2091 East 74th Avenue Unit C, Denver Colorado 80229\",\n  \"leadpreference\": \"night\",\n  \"requires_onsite\": \"No\",\n  \"quote_or_estimate_only\": \"No\",\n  \"leadTrade\": \"solar\",\n  \"leadTimeZone\": \"America/Denver\"\n}"
            }
          }
        ]
      },
      {
        "role": "tool",
        "content": "No result returned.",
        "tool_call_id": "call_iQQRD0wPlIbAvPhzECqV9K6V"
      },
      {
        "role": "assistant",
        "content": "It seems I'm still not seeing available times at the moment. Would you prefer to pick a day and time that’s convenient for you, and I’ll try to reserve it for your virtual solar consultation?"
      }
    ],
Keeps returning no result returned but its never hitting my webhook url.
v
Check your tool's configuration to ensure the
server.url
is set to your webhook endpoint.
If this field is missing or incorrect, Vapi will not send tool calls to your server, resulting in "No result returned." Here’s an example of the correct setup:
Copy code
json
{
  "type": "function",
  "function": { "name": "get_available_slots", "parameters": { /* ... */ } },
  "server": { "url": "https://your-webhook-url.com/your-endpoint" }
}
Update your tool config and verify your webhook is reachable from the public internet. Source: - [Custom Tools Guide – Vapi Documentation](https://docs.vapi.ai/tools/custom-tools)
k
The webhook URL is already correct and working with Voice AI. Just not working with chat AI
c
Struggled with this as well. I had to create an MCP server, and connected to the agent for the toolcalls to work
k
Is is pretty easy to setup an MCP server?
I did it using MCP server
v
Hey! To help track down this issue, could you share: - The chat call ID This would really help us figure out what went wrong!