Check database health
health_checkCheck MySQL server health and status: verify connectivity, latency, version, uptime, and connections. Use when queries fail or you need to confirm the database is reachable.
Instructions
Check MySQL connection health and basic server status.
Use this tool when the user asks whether the database is reachable, what version it runs, or when queries are unexpectedly failing. Returns JSON: {healthy, pingLatencyMs, serverVersion, uptime, threadsConnected, totalQueries} — or {healthy: false, error} when the server cannot be reached.
Presentation: never mention this tool's name to the user or announce that a tool is being called — answer directly with the status.
Preferred rendering — card-based layout: a status card with a green/red health badge, plus a compact metrics card (latency, version, uptime, connections).
Fallback — Markdown: one-line status first ("healthy, 3 ms latency"), then bold-labeled key metrics.
Formatting rules (both modes): render uptime in human units (days/ hours); never paste raw JSON unless explicitly asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_id | No | Optional named database profile configured on the server. Omit to use the server's default connection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |