check this one out..
https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context
if you are making a custom tool to your backend (this is the most complicated kind of tool, the custom ones) You have to capture the ID of the petition and then respond in an specific way, if not, then the agent would not know which response belongs to which function calling