tool call with no arguments
# support
a
hello, for some reason some tool calls are sent with no arguments to my endpoints, is there any way to solve this? the tools on the payload have required arguments but it still does this. [{'id': 'call_2YlR4FTDhh77JhOpQuCJP2KE', 'type': 'function', 'function': {'name': 'getSoonestAppointments', 'arguments': {}}}] thanks!
v
@Arcu Hello! It seems like there might be an issue with how the tool calls are being constructed. If the tools have required arguments, they should be included in the payload where the 'arguments' field is currently empty. To resolve this, you'll need to ensure that the necessary arguments are provided when setting up the tool call. If you have access to the part of the system where these payloads are generated, you should review the code to make sure that the required arguments are being correctly populated. If you're not sure what the required arguments are or how to include them, please ask support for more info on this. If you're able to provide more details about the required arguments for the 'getSoonestAppointments' function, I can help you construct a correct payload.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
Hey @Arcu To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
a
Hello! Here I can provide an example with the tool call id, the response is not the issue, it is that the arguments are empty when all of them are required and it shouldn't be happening Tool calls in payload: [{'id': 'call_lT2ZxlfwUHFLhBcvU6QhyV9r', 'type': 'function', 'function': {'name': 'getSoonestAppointments', 'arguments': {}}}]
s
Hey @Arcu Ah, looks like there's a mix-up - what you shared is actually the tool call ID, but I need the main call ID instead. Here's how to find it: 1. Open the Vapi dashboard 2. Go to the logs section 3. Click on 'calls' in the navigation menu 4. Look for the most recent call and grab that ID Could you share that one with me?
a
Oh got it!
1e254f6b-626e-4931-841f-2921a83666e1
that's the ID of a recent call that got this problem
s
@Arcu rewrite your tool description around tool usage, purpose, expected input parameters and optional output under 300 characters. example:- The getSoonestAppointments tool finds the earliest appointments for a business, doctor, and service in a set time frame, and expects values for business_id, doctor_id, service_id, start, end, timezone, and limit, and delivers up to 10 results After that to be double sure in your prompt add the following:- > trigger the getSoonestAppointments with business_id, doctor_id, service_id, start, end, timezone, and limit
Do let me know how it goes.
d
@Sahil bumping this old thread - curious if there are any limits to the argument size payload for a tool call
k
This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry. 
f
I'm experiencing the same issue. Is there a limit to the argument size payload for tool calls @Shubham Bajaj ?
I'm working on a room service assistant and it only seems to occur when I add 3 items to my 'basket'. With fewer items my function call gets triggered correctly.
k
Hi Floris, as mentioned earlier, current ticket has been closed. To address your ongoing issue, please submit a new ticket so we can assist you further.
4 Views