Skip to main content
Glama
dacebt

Prompt Cleaner MCP Server

by dacebt

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {} },
    },
  • 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;
    });

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/dacebt/prompt-cleaner-mcp'

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