Skip to main content
Glama

ping

Test connectivity to the Coolify MCP Server by sending a diagnostic request to verify the server is responsive and operational.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
random_stringNoDummy parameter for no-parameter tools

Implementation Reference

  • Registers the 'ping' tool with an optional input schema (random_string) and an inline asynchronous handler that returns a text content confirming the Coolify MCP server is running and connected. This serves as both registration, schema definition, and handler implementation.
    server.tool(
      'ping',
      {
        random_string: z.string().optional().describe("Dummy parameter for no-parameter tools")
      },
      async () => ({
        content: [{ 
          type: 'text', 
          text: 'Coolify MCP server is running and connected!' 
        }]
      })
    );
  • The handler function for the 'ping' tool, which ignores any input and returns a structured response indicating the server is operational.
    async () => ({
      content: [{ 
        type: 'text', 
        text: 'Coolify MCP server is running and connected!' 
      }]
    })
  • Input schema for the 'ping' tool using Zod, defining an optional string parameter as a dummy for no-parameter tools.
    {
      random_string: z.string().optional().describe("Dummy parameter for no-parameter tools")

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/FelixAllistar/coolify-mcp'

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