Gemini and AI agent tool calling

[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent: [400 Bad Request] * GenerateContentRequest.tools[0].function_declarations[6].parameters.properties[data].properties[children].items.properties[children].items: missing field. *

Some MCP servers trigger this tool-calling error, but it only seems to occur when using Gemini LLMs. Is there a known workaround (within n8n)?

Tengo el mismo problema, todavía buscando una solución…

Cambia a modelos que sean compatibles con OpenAI para llamadas de herramientas.
Si alojas tu propio servidor, intenta crear un proxy de LiteLLM alrededor de él

1 me gusta

Gracias por la respuesta - necesito usar Gemini, no tengo acceso a otros modelos, y estoy usando el servicio en la nube, no alojado por mi cuenta.

Puedo trabajar alrededor de esto con un subworkflow como herramienta o una solicitud HTTP y llamar a herramientas específicas que proporciona el MCP, así que no estoy totalmente bloqueado, pero requiere mucho más trabajo y es bastante engorroso.