tanaike

The Thinker

Enhanced Guide to Using Prompts in Gemini CLI

Gists Abstract This report provides a comprehensive overview of how to utilize prompts within the Gemini Command-Line Interface (CLI). Leveraging a Google Apps Script MCP server, we will explore practical examples, including roadmap generation, real-time weather inquiries, and Google Drive file searches. This enhanced document offers more in-depth explanations and a broader context to empower users in their understanding and application of these powerful features. Introduction The Model Context Protocol (MCP) establishes a standardized framework for servers to offer clients predefined, structured prompt templates.

Updated: GAS Library - ToolsForMCPServer

ToolsForMCPServer was updated to v1.0.12 v1.0.12 (July 31, 2025) At Gemini CLI v0.1.15, prompts/list was called even when prompts wasn’t included in capabilities. This resulted in the error Error discovering prompts from gas_web_apps: MCP error -32001: Request timed out when prompts wasn’t returned for prompts/list. To resolve this, I updated ToolsForMCPServer to return an empty array for prompts, which eliminated the error. Consequently, with this update in v1.