sad-indigoS
VAPI7mo ago
sad-indigo

VAPI incorrectly naming MCP function name

I'm encountering an issue when calling my custom MCP server. Although I've successfully set up the vapi assistant with the MCP server, the tool names are not being handled correctly. The server lists the tools as check_availability and create_book but when a tool is called, its name is prefixed with "run-". For example, instead of calling check_availability it calls run-check_availability which is causing the request to fail.

Example of the tool call result:
{
    "tool_calls": [
        {
            "id": "call_13MSnBy1svzJRGGmisKCEW2w",
            "type": "function",
            "function": {
                "name": "run-check_availability",
                "arguments": {
                    "date": "2025-05-30"
                }
            }
        }
    ]
}


Appreciate any help on this.
Was this page helpful?