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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ping.ts:15-17 (handler)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 {}; }
- src/tools/ping.ts:1-13 (schema)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(); }
- src/models/tool-models.ts:14-14 (helper)Zod schema for PingResponse, matching the empty object returned by the ping handler.export const PingResponseSchema = z.object({});