Grounding with Google Search

Hi developers! Lately, I’ve realized it’s necessary to limit the number of search queries performed by ‘Grounding with Google Search.’ I’ve been trying to find a way to do this to reduce billing costs from irrelevant searches, but I haven’t had any luck so far. Is there an existing mechanism or configuration to achieve this?