Choose supported models and handle generated media
Use current Gemini model names. If Gemini tool calls fail with older model names, switch to a currently supported Gemini model. For example, usegemini-2.5-flash instead of the older gemini-1.5-flash; model availability changes over time.
Choose a supported Veo model for video generation. For Gemini video generation, use supported Veo models such as veo-3.1-generate-preview, veo-3.1-fast-generate-preview, veo-3.0-generate-001, or veo-3.0-fast-generate-001. If the default model fails, explicitly pass a current supported Veo model.
Wait for asynchronous video generation to complete. Gemini video generation is asynchronous. Pass the operation_name returned by GEMINI_GENERATE_VIDEOS to GEMINI_WAIT_FOR_VIDEO, which polls for completion and returns the generated video file. The older GEMINI_GET_VIDEOS_OPERATION action is deprecated.
Disable automatic file handling when outputs should remain as URLs or content. Composio SDKs automatically handle file upload/download by default. For Gemini generated images or similar file outputs, disable automatic file handling with autoUploadDownloadFiles: false / auto_upload_download_files=False where supported, or update to a version that supports that option.
Connect Gemini through MCP and frameworks
Use Tool Router with any compatible MCP client. Tool Router can be used with any MCP client or framework/LLM that supports tool calling or MCP. For Gemini, initialize Composio withGeminiProvider, create a session, then connect to the session MCP URL and headers using a streamable HTTP MCP client.
Isolate Gemini CLI-specific MCP failures. If a Composio MCP server URL returns tools but Gemini CLI still fails, the issue may be in the Gemini client. Try the latest Gemini CLI version and, if needed, compare with another MCP client to isolate whether the failure is client-specific.
Use LangChain MCP tools with any capable model. Composio MCP tools with LangChain are not limited to OpenAI. They can work with any LLM/framework path that supports LangChain function calling capabilities, including Gemini and Claude.