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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_telemetry_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:376-386 (handler)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: {}, }, }, - src/prometheus-client.ts:40-47 (helper)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; } } - src/telemetry-service.ts:271-273 (helper)TelemetryService.isHealthy() method delegates the health check to the underlying PrometheusClient instance.
async isHealthy(): Promise<boolean> { return await this.prometheus.isHealthy(); }