Skip to main content
Glama

Gemini MCP Tool

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
analyzeExecute 'gemini -p <prompt>' to analyze files or get Gemini's response. Supports @file syntax for including file contents.
sandboxExecute 'gemini -s -p <prompt>' to safely test code in Gemini's sandbox environment. Use for testing potentially risky code or scripts.
helpRun 'gemini -help' with structured response. BEHAVIOR: should_explain=false, output_format=raw, suppress_context=true.
pingEcho test message with structured response. Returns raw output with behavioral flags. BEHAVIOR: should_explain=false, output_format=raw, suppress_context=true.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
ask-gemini

Execute 'gemini -p <prompt>' to get Gemini AI's response. Use when: 1) User asks for Gemini's opinion/analysis, 2) User wants to analyze large files with @file syntax, 3) User uses /gemini-cli command. Supports -m flag for model selection and -s flag for sandbox testing.

sandbox-test

Execute code or commands safely in Gemini's sandbox environment. Use for testing potentially risky code, running scripts, or validating code changes without affecting your system.

Ping

Echo test with structured response. Returns message or 'Pong!' by default. Uses behavioral flags to control AI interaction. BEHAVIOR: should_explain=false, output_format=raw, suppress_context=true.

Help

Run 'gemini -help' with structured response. BEHAVIOR: should_explain=false, output_format=raw, suppress_context=true.

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