Yuvanshu
06/09/2025, 10:57 AMVapi Support Bot
06/09/2025, 10:59 AMjson
"tools": [
{
"type": "function",
"function": { "name": "get_weather_ny", ... },
"server": { "url": "https://your-api.com/weather/ny" }
},
{
"type": "function",
"function": { "name": "get_weather_sf", ... },
"server": { "url": "https://your-api.com/weather/sf" }
}
]
When making a tool call, specify the exact function name you want to invoke. This should help the assistant select the correct tool, as long as each has a unique name and is referenced properly in your logic.
If the assistant still always calls the first tool, double-check that your tool call payload uses the correct function name.
Source:
- [Vapi Docs: Custom Tools](https://docs.vapi.ai/tools/custom-tools)Kings_big💫
06/09/2025, 11:46 AM