Skip to main content
Glama

ping

Check if the P-Link-MCP payment server is operational by sending a health verification request. Returns status confirmation when the server is active and responding.

Instructions

Simple MCP server health check. Returns { result: 'OK' } if the server is alive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
msgNo

Implementation Reference

  • Handler function for the 'ping' tool. Takes optional 'msg' input and returns a pong response with echoed message in both content and structuredContent.
    async ({ msg }: { msg?: string }) => ({ content: [{ type: 'text', text: `pong${msg ? ': ' + msg : ''}` }], structuredContent: { ok: true, echo: msg ?? null }, })
  • Input schema for ping tool: optional string 'msg'.
    inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape
  • src/stdio.ts:69-80 (registration)
    Registration of the 'ping' tool on the MCP server using registerTool, including title, description, schema, and inline handler.
    (server as any).registerTool( 'ping', { title: t('tools.ping.title'), description: t('tools.ping.description'), inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape }, async ({ msg }: { msg?: string }) => ({ content: [{ type: 'text', text: `pong${msg ? ': ' + msg : ''}` }], structuredContent: { ok: true, echo: msg ?? null }, }) );

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/paracetamol951/P-Link-MCP'

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