ping
Test connectivity and verify the Gemini MCP Tool server is operational by sending a message and receiving an echo response.
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 handler for the ping tool, which constructs a message and runs it via executeCommand("echo").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 input schema defining the 'prompt' parameter for the ping tool.const pingArgsSchema = z.object({ prompt: z.string().default('').describe("Message to echo "), });
- src/tools/index.ts:9-16 (registration)Registration of pingTool (and other tools) by pushing to the toolRegistry.toolRegistry.push( askGeminiTool, pingTool, helpTool, brainstormTool, fetchChunkTool, timeoutTestTool );