Skip to main content
Glama

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
NameRequiredDescriptionDefault
promptNoMessage to echo

Implementation Reference

  • 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); }
  • Zod input schema defining the 'prompt' parameter for the ping tool.
    const pingArgsSchema = z.object({ prompt: z.string().default('').describe("Message to echo "), });
  • Registration of pingTool (and other tools) by pushing to the toolRegistry.
    toolRegistry.push( askGeminiTool, pingTool, helpTool, brainstormTool, fetchChunkTool, timeoutTestTool );

Latest Blog Posts

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