I cannot use MCP tools with Gemini

I cannot use MCP tools with Gemini.
For example I want to use brave search but I get the error in the image.
I don’t understand how to define the dynamic parameter.

I have the same challenge.
For now, I’ve been using Mistral instead of Gemini.
In any case, here is some banter about this very topic.

I saw the solution from other site.

It’s working for me, but not perfect.
Edit the Tool Parameters in ExecTool. Change the type from json to string.

{{ $fromAI('Tool_Parameters', ``, 'string') }}