list_instancesList all Valkey/Redis instances registered in BetterDB. Shows connection status and capabilities.
select_instanceSelect which instance subsequent tool calls operate on.
add_connectionAdd a new Valkey/Redis connection to BetterDB. Optionally set it as the active default.
test_connectionTest a Valkey/Redis connection without persisting it. Use before add_connection to validate credentials.
remove_connectionRemove a connection from BetterDB.
set_default_connectionSet a connection as the active default for BetterDB.
get_infoGet INFO stats for the active instance. Contains all health data: memory, clients, replication, keyspace, stats (hit rate, ops/sec), and server info.
get_slowlogGet the most recent slow commands from the slowlog.
get_commandlogGet the most recent entries from COMMANDLOG (Valkey 8+ only, superset of slowlog).
get_latencyGet latency event history for the active instance.
get_memoryGet memory diagnostics: MEMORY DOCTOR assessment and MEMORY STATS breakdown.
get_clientsGet the active client list with connection details.
get_healthGet a synthetic health summary for the active instance: keyspace hit rate, memory fragmentation ratio, connected clients, replication lag (replicas on
get_slowlog_patternsGet analyzed slowlog patterns from persisted storage. Groups slow commands by normalized pattern, showing frequency, average duration, and example com
get_commandlog_historyGet persisted COMMANDLOG entries from storage (Valkey 8+ only). Supports time range filtering to investigate specific incidents. Returns empty with a
get_commandlog_patternsGet analyzed COMMANDLOG patterns from persisted storage (Valkey 8+ only). Like get_slowlog_patterns but includes large-request and large-reply pattern
get_anomaliesGet anomaly detection events from persisted storage. BetterDB continuously runs Z-score analysis on memory, hit rate, CPU, and other metrics — this re
get_client_activityGet time-bucketed client activity from persisted snapshots. Shows connection counts, command distribution, and buffer usage over time. Use startTime/e
+12 more tools
We re-grade npm:@betterdb/mcp on a schedule and alert your Slack/webhook the moment its tools change or its grade drops — rug-pull insurance for the connection.
Add the wmcp.sh trust oracle as an MCP server and call grade_mcp_server / check_mcp_drift in your agent's pre-connection gate:
https://wmcp.sh/mcp/trust
readOnly vs observed behavior) layer on via the wmcp.sh proxy.