SUPER URGENT - API tools recieving empty paramters...
# support
s
You can check my Agent Id - 22b445c6-88f2-46af-891c-cfb68db7e764 Call ID - 00b9f50a-d553-4b36-bb21-0035a75ca246 Inside that you can find the model tool call at { "id": "log-6359", "level": 30, "time": 1756578084927, "timestamp": 1756578084927000000, "severityText": "INFO", "severityNumber": 9, "body": "Model called tool", "attributes": { "category": "tool", "callId": "00b9f50a-d553-4b36-bb21-0035a75ca246", "orgId": "fab644c4-ea33-4e4a-83f9-077301a5cd3a", "type": "function", "id": "toolu_01DczBrE6mQix3s8x4XH2FLf", "function": { "name": "bookAppointment", "arguments": "{\"date\": \"2025-08-31\", \"startTime\": \"17:00\", \"endTime\": \"18:00\", \"name\": \"Shudawil\", \"email\": \"shraddhagoyal24@gmail.com\", \"phone\": 13373335126, \"reason\": \"Teeth Cleaning\", \"doctorId\": \"ad8ff1a8-9aa4-4ced-9ee3-03f5d090c628\"" }, "isPrecededByText": true } } Here it showins it;s passing argument you can check my tool as well it is also have correct definition but in my api call on server all the required parameters coming blank
@User
a
Hey @shraddha0647 Were you able to get this through?
s
@Aniket Khajanchi Hi Aniket
No Solution yet
@Aniket Khajanchi did you get any work around ?
a
Nope. Team is supposedly on a holiday.
s
I need it urgently I have emailed them 4 days back
Not sure when they will help, trying different work arounds but not a luck
a
Same this side Tool is good. I wish there was an equivalent effort on the support.
which model are you using btw?
@shraddha0647
s
Currently I am on pre-pod testing mode, I am trying to switch between GPT 4.1, Claude Sonnet 4. I am more curious about the latency in that
@Aniket Khajanchi just check I did a work around which brings up the data Whatever you want in your tool, in your prompt define to store as variable with variable name like in my case patientName -> {{patientName}} And then explicitly mention all the parameters there value in the prompt. That way it shows up the variable
Just give a try may work for you. I still need to do more testing on that
a
thanks let me try that once
but value is supposed to be taken within the call right
s
Yes, mention in prompt mention when taken input store as variable for example # Step 1 Gather Required infomation Collect pateint name and store as {{ patientName }} # CALL YOURTOOLNAME - Include all paramters - pateitnName -> {{ patientName}}
My issue was not related to call transfer @Ron
@User No updates from your side on this as a helpfull steps. This works for me, but I say technically you tool need a fix, because this adds cost for the context
i have 8 tools, imagine passing these defination in my context for all parameters
c
Hi shraddha0647, If you are experiencing an issue with API tools receiving empty parameters, I recommend reviewing the parameters being passed to ensure they match the required format and type. Make sure that all required parameters are included and properly populated. For updating a tool, you can use the PATCH method as outlined in the [Update Tool documentation](https://docs.vapi.ai/api-reference/tools/update) using
/tool/:id
. Ensure you include the necessary path parameter
id
and provide a complete request object. If you're encountering issues with API requests containing empty arguments, verify the payload against the expected schema in the documentation to ensure correctness. If this doesn’t resolve the issue, please let us know and we’ll be happy to step in and assist further.
m
So basically i have created a tool call using the dashboard. It is not able to send the tool call arguements in the tool call. Now if I add default value for that arg then it keeps on using that specific default value. The call agent is able to understand that he has entered the wrong number but never improves or tries to use the correct id.
@User Can anybody tell why is this happening? Why empty args are being passed. We are doing it using dashboard
s
Aniah I already checked this, it doesn't work
c
Thank you for providing this information. We’ll be looking into it further to better understand the situation and determine the next steps. Our team will update you as soon as we have more details, and we truly appreciate your patience and cooperation in the meantime.
3 Views