Skip to main content
Glama

ping

Check if the sales recorder MCP server is operational by sending a test request and receiving a status response.

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

  • Inline handler function for the 'ping' tool. Takes optional 'msg' input and returns a content block with 'pong' prefixed message and structured echo response.
    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' field.
    inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape
  • src/stdio.ts:97-108 (registration)
    Registration of the 'ping' tool on the MCP server, including metadata (title, description), input 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/caisse-enregistreuse-mcp-server'

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