Skip to main content
Glama
DB Health MCP
by ekss1121

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATABASE_URLYesDatabase connection URL. The scheme selects the engine: mysql:// for MySQL or postgresql:// for PostgreSQL.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
health_reportA

Run every health check in one call and return a single report: an overall score (0-100), findings sorted by severity, and a concrete suggested fix for each finding (SQL text, never executed). Works for MySQL and PostgreSQL; the engine is picked from the URL scheme.

db_overviewB

Get a quick snapshot: server version, database size, active connection count, and the largest tables by total size.

slow_queriesA

List the slowest queries by mean execution time (MySQL: performance_schema statement digests; PostgreSQL: pg_stat_statements). If the statistics source is unavailable, returns instructions for enabling it instead of failing.

missing_indexesC

Find tables that are read mostly by full/sequential scans — the classic symptom of a missing index.

table_bloatB

Find bloated tables (PostgreSQL: dead-tuple ratio; MySQL: InnoDB fragmentation via data_free).

index_usageB

Find indexes that have never been used for a scan — they still cost write overhead and disk. Primary-key and unique indexes are excluded.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a single, distinct diagnostic concern: missing indexes, table bloat, unused indexes, slow queries, and a snapshot overview. The one potential overlap (health_report vs. individual checks) is clearly framed as an aggregate that runs all checks in one call, so there's no confusion about when to use which.

Naming Consistency4/5

All names are snake_case noun phrases describing the returned data (missing_indexes, table_bloat, index_usage, health_report, db_overview, slow_queries) — internally consistent rather than verb_noun. Minor singular/plural mixing (missing_indexes vs. table_bloat) keeps it just short of perfect.

Tool Count5/5

Six tools is well-scoped for a DB health diagnostic server: five focused checks plus one aggregate report. Each tool earns its place with no redundancy beyond the intentional roll-up.

Completeness4/5

Covers the core health signals — index gaps, bloat, unused indexes, slow queries, and a version/size/connection snapshot — with an aggregate report. Gaps exist for lock/wait analysis, cache hit ratios, and replication lag, but these are workaround-able omissions rather than blocking holes.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues