get_health
Retrieve a synthetic health summary for active database instances, including hit rates, memory fragmentation, client connections, replication lag, and keyspace size to identify actionable performance signals.
Instructions
Get a synthetic health summary for the active instance: keyspace hit rate, memory fragmentation ratio, connected clients, replication lag (replicas only), and keyspace size. Use this as the first call when investigating an instance — it surfaces the most actionable signals without requiring you to parse raw INFO output.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | No | Optional instance ID override |
Implementation Reference
- packages/mcp/src/index.ts:412-422 (handler)The tool "get_health" is registered and implemented in the MCP server definition. It calls an internal API endpoint (/mcp/instance/${id}/health) to retrieve and format the health summary.
'get_health', 'Get a synthetic health summary for the active instance: keyspace hit rate, memory fragmentation ratio, connected clients, replication lag (replicas only), and keyspace size. Use this as the first call when investigating an instance — it surfaces the most actionable signals without requiring you to parse raw INFO output.', { instanceId: z.string().optional().describe('Optional instance ID override') }, async ({ instanceId }) => { const id = resolveInstanceId(instanceId); const data = await apiFetch(`/mcp/instance/${id}/health`); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, );