Skip to main content
Glama

ping

Check the operational status of the cash register MCP server to verify system connectivity and availability.

Instructions

Vérifie l’état du serveur MCP. Retourne { result: 'OK' } si le serveur est opérationnel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
msgNo

Implementation Reference

  • src/stdio.ts:97-108 (registration)
    Registration of the 'ping' tool, including metadata, inputSchema, and inline handler function.
    (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 }, }) );
  • Handler function for the 'ping' tool that returns a pong response with echoed message in both text and structured content.
    async ({ msg }: { msg?: string }) => ({ content: [{ type: 'text', text: `pong${msg ? ': ' + msg : ''}` }], structuredContent: { ok: true, echo: msg ?? null }, })
  • Input schema definition for the 'ping' tool: optional string parameter 'msg'.
    inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape

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/caisse-enregistreuse-mcp-server'

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