These particular instructions make me think interesting stuff might happen if one could "convince" the model to generate JSON in these calls.
Let a regular script parse that and save a lot of money not having chatgpt do hard things.
Otherwise it’s JSONSchema validation. Pretty low cost in the scheme of things.