Skip to main content
Glama

ping

Test connectivity and response from the Codex MCP Server to verify the communication channel is active and working properly.

Instructions

Echo

Input Schema

NameRequiredDescriptionDefault
promptNoMessage to echo

Input Schema (JSON Schema)

{ "properties": { "prompt": { "default": "", "description": "Message to echo ", "type": "string" } }, "required": [], "type": "object" }

Implementation Reference

  • Full implementation of the 'ping' tool, including the handler (execute function) that returns an echo message.
    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 message directly to avoid cross-platform issues with echo command return message as string; }, };
  • Zod schema defining the input arguments for the ping tool.
    const pingArgsSchema = z.object({ prompt: z.string().default('').describe('Message to echo '), });
  • Registration of the pingTool into the central tool registry.
    toolRegistry.push( askCodexTool, batchCodexTool, // reviewCodexTool, pingTool, helpTool, versionTool, 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/cexll/codex-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server