API Request Tool vs Function Tool
Choose API Request for direct HTTP APIs and Function for Vapi tool-calls webhooks.
Use an API Request Tool when your assistant needs to call an ordinary HTTPS API. Use a Function Tool when your server implements Vapi’s tool-calls webhook protocol, or when the tool must run asynchronously or on the client.
If you are unsure, start with an API Request Tool.
Choose a tool
Compare how they work
Both tool types let the model decide when to call the tool and which model-generated arguments to supply. Validate caller-controlled values at the destination before using them for sensitive actions.
API Request Tool example
This tool sends a direct request to an existing order API:
The destination receives a JSON body:
It can return the result directly:
Function Tool example
This tool sends a Vapi webhook to infrastructure that you control:
Vapi sends a tool-calls message that includes the tool call and call context. Your server must return a result associated with the incoming tool-call ID: