AI Agent: Spotify request works the first call, but not subsequently

New to this, I have searched for some answers, but not sure of the best terms yet.

I created a very simple AI agent to request the currently playing song from spotify, just for testing (using this with Gemini Flash 2.0).

When the routine runs the first time (or if I delete the memory), it works. Uses the spotify tool each time.

However, when I have memory hooked up, it will work on the first call of the session, but then refuse to use the tool for subsequent sessions, and return random song titles (they appear to come from the current playlist, but not always, and I can’t find where the playlist returned any data in the logs/execution windows).

I had some similar issues with a Calendar event creation routine, but I found that one would work when I was more specific about a date (and didn’t use words like “today” or “tomorrow”

Is there some keyword I can use in the prompt so that it ignores the memory for that specific job?

Hi, I think I can help with this. The most simple fix would be to use gemini flash 2,5, the thinking helps a lot.

Regarding the question about the keyword. It isn’t possible.

Also could you share your prompt? Better prompting helps a lot with the tool usage as it’s the LLM that must decide when to call.