edit: But if you’re using functions, and the model isn’t using the functions, the problem would rather be that maybe it doesn’t understand when or how to use your function? iterating on your prompt, reminding the model to use the function might help.
Literally just tell it to respond with JSON and be specific about what attributes for it to use. Also make sure to tell it ONLY to return JSON.
3.5 models will not be able to do this well consistently, just FYI.