You have two different problems then
First honestly if your prompt is that simple and it’s having problems with scripts it tells me this model either a has tool use issues or b it’s core prompt (not you, a level below) isn’t explaining the tools properly. (I think the goog and oai integration are very similar under the hood so I find it hard to believe the info isn’t being passed to Google (I’ll check when I have time.). But you won’t be able to fix that if it’s the case.
The second issue you absolutely can fix. Context.
Read top to bottom and ignore my crappy typos. Context matters.