gemini_prompt
Send prompts to Google's Gemini models via CLI to generate text responses. Supports contextual prompts and optional model selection for AI interactions.
Instructions
Invoke the headless Gemini CLI with a single prompt. Stateless — each call is an independent turn. Runs in the MCP server's current working directory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "gemini_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt text sent to the Gemini CLI. | |
| model | No | Optional model identifier (e.g., gemini-2.5-pro). |