Skip to main content
Glama
cordlesssteve

Claude Telemetry MCP

get_telemetry_health

Check if the telemetry system is operational and accessible to monitor Claude usage metrics and analytics.

Instructions

Check if telemetry system is running and accessible

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main tool handler that invokes TelemetryService.isHealthy() and formats the markdown response with health status.
    case 'get_telemetry_health': { const isHealthy = await this.telemetryService.isHealthy(); return { content: [ { type: 'text', text: `## Telemetry System Health\n\n**Status**: ${isHealthy ? '✅ Healthy' : '❌ Unavailable'}\n\n${isHealthy ? 'Prometheus is accessible and telemetry data is being collected.' : 'Telemetry system is not responding. Check if services are running: `docker compose ps`'}`, }, ], }; }
  • src/index.ts:182-189 (registration)
    Tool registration in ListToolsRequestSchema response, specifying name, description, and empty input schema.
    { name: 'get_telemetry_health', description: 'Check if telemetry system is running and accessible', inputSchema: { type: 'object', properties: {}, }, },
  • Core implementation: PrometheusClient.isHealthy() performs HTTP GET request to Prometheus /-/healthy endpoint with 3s timeout and checks for 200 status.
    async isHealthy(): Promise<boolean> { try { const response = await axios.get(`${this.baseUrl}/-/healthy`, { timeout: 3000 }); return response.status === 200; } catch { return false; } }
  • TelemetryService.isHealthy() method delegates the health check to the underlying PrometheusClient instance.
    async isHealthy(): Promise<boolean> { return await this.prometheus.isHealthy(); }

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/cordlesssteve/claude-telemetry-mcp'

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