Gemini 2.5 pro can't properly use mcp tools

I wrote an mcp server that provides screenshot, mouse and keyboard functionality and it works fine on claude 3.5 haiku.
The problem is that when I test Gemini 2.5 pro it stops after the first mcp call.

No matter how much I ask it to complete the task without stopping, it just won’t work, it will keep saying "I’ll now use … " and then stops.

However, if I run the whole process with 3.5 haiku model,


after it successfully finished,

The gemini 2.5 pro model now processes the results smoothly and provides better results.