error assistant + custom tool + chat
# support
f
in a call context my tools are well called but with the chat api there is an error i see no result returns even if the result is {"results": [{"toolCallId": "call_GYAe4jsQOInW5mLQkXx1yYHx", "result": "lundi 01 Septembre 2025"}]} it seem to be the correct format
c
Hi Florent, To resolve the issue where the assistant doesn't recognize the tool's result in your chat API context, please confirm the following: 1. HTTP Status Code: Ensure your response returns HTTP 200, as other status codes can cause the response to be ignored. 2. Correct Result Format: The JSON structure should match exactly what you've provided, which looks correct. However, any line breaks or unexpected characters could potentially cause parsing issues. 3. toolCallId Match: Verify that the
toolCallId
in your response matches the ID used in the request exactly. 4. Single-Line Responses: Ensure that your
result
field is a single-line string without any line breaks. If all these points are correct, check your assistant's configuration for any schema validation errors or other potential misconfigurations. Additionally, ensure that the call logs do not show errors such as "Schema validation errors" or "Response parsing errors" which could provide more insights into the problem. For further troubleshooting, reviewing the [Custom Tools Troubleshooting Guide](https://docs.vapi.ai/tools/custom-tools-troubleshooting) could be helpful.
4 Views