Jack Sparrow
05/20/2025, 6:34 AM"arguments": {
"date_time_wordings": "fourth of May 2026",
"surgeonName": "Anderson Richard",
"hospitalName": "Apollo ; Varodara region, Northeast CA"
}
Expected response:
"arguments": {
"date_time_wordings": "fourth of May 2026",
"surgeonName": "Anderson Richard",
"hospitalName": "Apollo ; Varodara region, Northeast CA",
"callerName": "XYZ" // This is a required field
}
Vapi Support Bot
05/20/2025, 6:36 AMJack Sparrow
05/20/2025, 10:00 AMKings_big💫
05/20/2025, 1:39 PMAditya
05/20/2025, 6:56 PMShubham Bajaj
05/21/2025, 1:41 AMsearch
function:-
- strict: true means the model must follow the exact schema - it can only include properties defined in your schema, but doesn't force all defined properties to be present
- required: ["property1", "property2"] specifies which properties MUST be included in the request
These work independently:
1. With strict: true, the model can only use properties defined in your schema
2. The required array controls which specific properties are mandatory
The best practice is:
Use strict: true to prevent unexpected properties
Include only truly mandatory properties in the required array
json
"function": {
"name": "search",
"strict": true,
"parameters": {
"type": "object",
"required": ["hospitalName", "surgeonName"],
"properties": {
"date": {
"type": "string",
"description": "Date of the case\nformat: \"2025-4-20\""
},
"patientName": {
"type": "string",
"description": "Name of the patient\nformat: \"firstname lastname\""
},
"surgeonName": {
"type": "string",
"description": "Name of the surgeon"
},
"hospitalName": {
"type": "string",
"description": "Name of the hospital"
},
"date_time_wordings": {
"type": "string",
"description": "date and time in wordings\n\n#if the user describes something like today , yesterday , tomorrow , next Friday , last Monday anything like this then send those wordings.\nexample :\n\"last Monday\" : \"last Monday\""
}
}
}
Shubham Bajaj
05/21/2025, 1:50 AMreschedule
function:-
- The tool call is missing the required parameters caseNo and callerName which violates both the required property constraint and the strict: true setting.
- This appears to be an implementation error. The model should have been forced to include all required properties in its tool call.Shubham Bajaj
05/21/2025, 1:53 AMJack Sparrow
05/21/2025, 6:33 AMJack Sparrow
05/21/2025, 6:37 AMAditya
05/21/2025, 3:34 PMAditya
05/21/2025, 3:34 PMJack Sparrow
05/22/2025, 7:49 AMShubham Bajaj
05/23/2025, 12:13 AMJack Sparrow
05/23/2025, 11:06 AMAditya
05/24/2025, 2:32 AMAditya
05/30/2025, 12:02 PMtrigger the reschedule tool with confirm, case_no, caller_name, ...., paramN
Most likely the incomplete tools calling is related to the transcription and prompt but this can help you solve it.