Skip to main content
Glama

ping

Verify Kubernetes cluster connectivity by checking if the counterpart remains responsive and the connection is alive.

Instructions

Verify that the counterpart is still responsive and the connection is alive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'ping' tool. It takes no arguments and returns an empty object to verify responsiveness.
    export async function ping(): Promise<Record<string, never>> { return {}; }
  • The schema definition for the 'ping' tool, specifying name, description, empty input schema, and read-only annotation.
    export const pingSchema = { name: "ping", description: "Verify that the counterpart is still responsive and the connection is alive.", inputSchema: { type: "object", properties: {}, required: [], }, annotations: { readOnlyHint: true, }, };
  • src/index.ts:138-139 (registration)
    Registration of the ping tool schema in the main 'allTools' array used for listing available tools.
    // Ping utility pingSchema,
  • src/index.ts:515-517 (registration)
    Dispatch/registration in the CallToolRequestSchema handler switch statement, invoking the ping handler.
    case "ping": { return await ping(); }
  • Zod schema for PingResponse, matching the empty object returned by the ping handler.
    export const PingResponseSchema = z.object({});

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/Flux159/mcp-server-kubernetes'

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