Skip to main content
Glama

zetrix_check_health

Check the operational status of the Zetrix blockchain node to verify system availability and functionality.

Instructions

Check the health status of the Zetrix node

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:61-68 (registration)
    Tool registration including name, description, and empty input schema (no parameters required). This is part of the tools array served via ListToolsRequestHandler.
    { name: "zetrix_check_health", description: "Check the health status of the Zetrix node", inputSchema: { type: "object", properties: {}, }, },
  • MCP server request handler for CallToolRequest. Extracts no arguments (empty schema), calls ZetrixClient.checkHealth(), and returns JSON-formatted result as text content.
    case "zetrix_check_health": { const result = await zetrixClient.checkHealth(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • Core implementation of the health check in ZetrixClient class. Performs GET /hello to the RPC endpoint, checks HTTP 200 status for health, includes network/RPC details and timestamp. Returns error details if failed.
    async checkHealth(): Promise<ZetrixNodeHealth> { try { const response = await this.client.get("/hello"); return { healthy: response.status === 200, network: this.network, rpcUrl: this.rpcUrl, timestamp: Date.now(), }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { healthy: false, network: this.network, rpcUrl: this.rpcUrl, timestamp: Date.now(), error: errorMessage, }; } }
  • TypeScript interface defining the structure of the health check response.
    export interface ZetrixNodeHealth { healthy: boolean; network: string; rpcUrl: string; timestamp: number; error?: string; }

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/Zetrix-Chain/zetrix-mcp-server'

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