ping
Verify connectivity and test response by sending a message to the Gemini MCP Tool. Use it to confirm server availability and ensure smooth interaction with Gemini CLI.
Instructions
Echo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Message to echo |
Implementation Reference
- src/tools/simple-tools.ts:17-20 (handler)The execute function of the pingTool, which echoes the prompt message or defaults to 'Pong!' using executeCommand.execute: async (args, onProgress) => { const message = args.prompt || args.message || "Pong!"; return executeCommand("echo", [message as string], onProgress); }
- src/tools/simple-tools.ts:5-7 (schema)Zod schema defining the input arguments for the ping tool, including an optional prompt.const pingArgsSchema = z.object({ prompt: z.string().default('').describe("Message to echo "), });
- src/tools/index.ts:9-16 (registration)Registration of the pingTool into the central toolRegistry by pushing it into the array.toolRegistry.push( askGeminiTool, pingTool, helpTool, brainstormTool, fetchChunkTool, timeoutTestTool );
- src/tools/index.ts:4-4 (registration)Import of the pingTool from simple-tools.js for registration.import { pingTool, helpTool } from './simple-tools.js';
- src/tools/simple-tools.ts:9-21 (handler)Full definition of the pingTool including name, schema, description, and execute handler.export const pingTool: UnifiedTool = { name: "ping", description: "Echo", zodSchema: pingArgsSchema, prompt: { description: "Echo test message with structured response.", }, category: 'simple', execute: async (args, onProgress) => { const message = args.prompt || args.message || "Pong!"; return executeCommand("echo", [message as string], onProgress); } };