Melissa
09/10/2025, 3:31 PMChiranjeet Mishra
09/10/2025, 3:56 PMget_token and use_token_service, to ensure they are triggered accurately.
3. **Response Formatting**: Make sure the JSON responses from your tools adhere to the required structure, using single-line strings without line breaks, and always return HTTP 200 status.
4. **Token Handling in API Calls**: When using the token in the subsequent API calls, ensure it is dynamically inserted properly into request headers.
5. **Debug Call Logs**: Look for any errors in the call logs, such as "Schema validation errors" or "Token truncation warnings," to identify issues related to parameter handling or token size limits.
You can refer to the detailed [troubleshooting guide](https://docs.vapi.ai/tools/custom-tools-troubleshooting) for more in-depth solutions. If these steps don't resolve the issue, reviewing the precise configurations in your Vapi dashboard might help pinpoint the problem.
If this doesn’t resolve the issue, please let us know and we’ll be happy to step in and assist further.Melissa
09/10/2025, 4:17 PMMelissa
09/10/2025, 4:18 PMMelissa
09/10/2025, 4:18 PMMelissa
09/10/2025, 4:20 PMMelissa
09/10/2025, 4:21 PMMelissa
09/10/2025, 4:22 PMMelissa
09/11/2025, 7:21 PMChiranjeet Mishra
09/12/2025, 4:30 PMChiranjeet Mishra
09/12/2025, 4:31 PM{
"results": [
{
"toolCallId": "call_1",
"result": "First tool success (token)"
},
{
"toolCallId": "call_2",
"result": "Second tool success (using token)"
}
]
}
3. Common issues to verify:
- Check that both tools have proper schema validation
- Ensure tool call IDs match exactly
- Verify your response format doesn't contain line breaks
- Make sure token passing between tools is properly formatted
If you're storing the token in a variable, make sure:
- The token tool completes successfully before the second tool tries to use it
- The authorization header format is correct
- Error handling is in place for cases where the token isn't availableMelissa
09/25/2025, 5:16 PMChiranjeet Mishra
09/30/2025, 6:45 PM{
"results": [
{
"toolCallId": "call_1",
"result": "First tool success"
},
{
"toolCallId": "call_2",
"result": "Second tool success"
}
]
}
2. Async vs Sync Behavior: Consider whether you need sync or async behavior for your tools:
- For token fetching + API calls, sync tools (async: false) are recommended since you need the token before making the second call [1](https://docs.vapi.ai/tools/custom-tools-troubleshooting)
3. Common Issues to Check:
- Verify both tools return HTTP 200, even for errors
- Ensure you're using single-line strings without line breaks
- Check that toolCallId matches exactly between request and response
- Validate your JSON response structure
- Make sure you have sufficient token limits set (maxTokens)
Try reviewing your logs for specific error messages like:
- "ok, no result returned"
- "Tool call ID mismatches"
- "Schema validation errors"
- "Response parsing errors"