DB-Guard MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scan_recent_db_errors_in_logsB | Scans application log files in the current workspace (pass project_dir or log_path) for recent SQL, JPA, Hibernate, constraint, and bad-data exceptions. |
| list_connectionsA | Lists all ready-to-use database connections automatically discovered from local DBeaver (names, hosts, ports, drivers, SSH tunnel flags) without exposing any credentials. |
| list_databasesA | Lists all databases / schemas available on a specified DBeaver connection. |
| inspect_schemaA | Inspects tables, columns, types, nullability, PKs, FKs, and DDL on a DBeaver connection + database. Pass table='exact_table' for full column/FK/DDL details, or table_pattern='%order%' to search tables. |
| explain_queryB | Runs EXPLAIN on a SELECT query using the specified DBeaver connection + database. |
| diagnose_queryA | Executes a single strictly READ-ONLY diagnostic query (SELECT / SHOW / DESCRIBE) using DBeaver's saved connection inside an engine-enforced READ ONLY transaction with timeout & row caps. Automatically masks PII columns while preserving length, NULL vs empty, and whitespace anomalies. |
| preview_remediationB | Runs a real transactional dry-run (START TRANSACTION -> pre-SELECT -> DML -> post-SELECT -> ROLLBACK) using DBeaver's connection WITHOUT committing any change. Returns before/after row diff and generates a transaction-safe .sql script. |
| open_remediation_in_dbeaverB | MANDATORY BACKUP + AUDIT HANDOFF: First backs up original rows (JSON + INSERT SQL + rollback.sql) to audit-backups/ and appends an audit entry to change-logs/, then opens the transaction-wrapped .sql script directly in DBeaver bound to that connection for human review and COMMIT. |
| apply_remediationB | MANDATORY BACKUP + AUDIT COMMIT: Persists full original row backups (JSON + INSERT SQL + rollback.sql) to audit-backups/, executes atomic row-count-locked DML on allowed connections, and logs field-level changes to change-logs/modification_audit.md & .jsonl. |
| list_modification_historyB | Lists chronological database modification audit logs, field diffs, original data backup paths, and ready-to-run rollback.sql paths. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools target distinct stages: connection discovery, schema inspection, read-only diagnostics, remediation dry-run/handoff/apply, and audit history. explain_query and diagnose_query both execute or analyze queries, and preview_remediation vs open_remediation_in_dbeaver both involve transaction-safe scripts, but the descriptions make their intended uses distinguishable.
All tool names use snake_case and begin with action verbs, with no camelCase or mixed naming styles. Some names are long, such as scan_recent_db_errors_in_logs and open_remediation_in_dbeaver, but they still follow a predictable verb-led pattern.
10 tools is well within the ideal 3–15 range and maps cleanly to the database diagnostics-to-remediation workflow. No tools appear redundant or trivial for the stated scope.
The surface covers connection discovery, schema inspection, read-only query diagnosis, remediation preview/handoff/apply, and audit history, which is a complete lifecycle for guarded database changes. The main gap is the lack of an explicit rollback/revert execution tool, relying instead on generated rollback.sql paths for manual use.