Skip to main content
Glama

Gemini MCP Tool

ask-gemini

Analyze files, codebases, and general queries using Google Gemini CLI. Select models, test changes in sandbox mode, and enable structured edits for precise suggestions via natural language commands.

Instructions

model selection [-m], sandbox [-s], and changeMode:boolean for providing edits

Input Schema

NameRequiredDescriptionDefault
changeModeNoEnable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly
chunkCacheKeyNoOptional cache key for continuation
chunkIndexNoWhich chunk to return (1-based)
modelNoOptional model to use (e.g., 'gemini-2.5-flash'). If not specified, uses the default model (gemini-2.5-pro).
promptYesAnalysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions
sandboxNoUse sandbox mode (-s flag) to safely test code changes, execute scripts, or run potentially risky operations in an isolated environment

Input Schema (JSON Schema)

{ "properties": { "changeMode": { "default": false, "description": "Enable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly", "type": "boolean" }, "chunkCacheKey": { "description": "Optional cache key for continuation", "type": "string" }, "chunkIndex": { "description": "Which chunk to return (1-based)", "type": [ "number", "string" ] }, "model": { "description": "Optional model to use (e.g., 'gemini-2.5-flash'). If not specified, uses the default model (gemini-2.5-pro).", "type": "string" }, "prompt": { "description": "Analysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions", "minLength": 1, "type": "string" }, "sandbox": { "default": false, "description": "Use sandbox mode (-s flag) to safely test code changes, execute scripts, or run potentially risky operations in an isolated environment", "type": "boolean" } }, "required": [ "prompt" ], "type": "object" }

Other Tools from Gemini MCP Tool

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamubc/gemini-mcp-tool'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server