Skip to main content
Glama
DB Health MCP
by ekss1121

health_report

Run every database health check in one call to get an overall score, severity-sorted findings, and suggested SQL fixes for MySQL or PostgreSQL.

Instructions

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.

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": "health_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
database_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden and does disclose two traits an agent needs: the engine is auto-detected from the URL scheme, and the suggested-fix SQL is never executed (so the call is safe on a live database). It omits latency/cost of running every check, permission requirements, and whether the database is touched at all beyond suggested fixes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight clauses, front-loaded with the action and immediately followed by the return shape and engine support. No filler or restated title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description covers the return payload well enough (score, sorted findings, fixes). The remaining gap is handling of an omitted database_url, which matters for a tool with one optional parameter and no other configuration surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single database_url parameter, so the description must compensate; it does add real meaning by stating the URL scheme selects MySQL vs PostgreSQL. However, it never says what happens when the parameter is omitted (it defaults to null), e.g. whether a configured default connection is used or the call fails.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific action (run every health check) and a concrete deliverable (overall score 0-100, severity-sorted findings, per-finding fix). The phrase 'every health check in one call' implicitly separates it from the per-check siblings like index_usage or slow_queries, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The aggregate framing implies when to reach for it (a single combined audit rather than individual checks), but there is no explicit 'use X instead when you only care about Y' routing and no stated preconditions or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.