health-ping
Check server status and confirm operational readiness for prompt cleaning and sanitization tools.
Instructions
Liveness probe; returns { ok: true }
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:87-91 (handler)The core handler logic for the 'health-ping' tool. It creates an output object { ok: true }, logs the execution time, and returns it formatted as JSON content.case "health-ping": { const out = { ok: true } as const; logger.info("health.ping", { elapsed_ms: Date.now() - start }); return jsonContent(out); }
- src/tools.ts:75-79 (registration)Tool registration in listTools(): defines name, description, and input schema (empty object) for 'health-ping'.{ name: "health-ping", description: "Liveness probe; returns { ok: true }", inputSchema: { type: "object", properties: {} }, },
- src/tools.ts:78-78 (schema)Input schema definition for 'health-ping': accepts an empty object.inputSchema: { type: "object", properties: {} },
- src/server.ts:24-27 (registration)MCP server registration for listing tools, which includes 'health-ping' via listTools().server.setRequestHandler(ListToolsRequestSchema, async () => { logger.info("tools.list", {}); return { tools: listTools() }; });
- src/server.ts:29-39 (registration)MCP server registration for calling tools, which dispatches to the 'health-ping' handler via callTool.server.setRequestHandler(CallToolRequestSchema, async (request) => { const name = request.params.name; const args = request.params.arguments ?? {}; const requestId = (args as any)?.requestId || randomUUID(); const withRid = { ...(args as any), requestId }; logger.info("tools.call.start", { name, request_id: requestId }); const res: any = await callTool(name, withRid); logger.info("tools.call.done", { name, request_id: requestId }); // Return MCP-spec content unchanged (including json type when present) return res; });