Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DBMOLE_STORENoOverrides the path of the global connections store (default: ~/.config/dbmole/connections.json). The server needs no configuration to start; connections are normally added later through MCP tools.

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

Tools

Functions exposed to the LLM to take actions

NameDescription
list_connectionsA

List database connections with the layer each comes from: project (.dbmole.json, found by walking up from the project dir) or global (user store). Also shows invalid entries and broken files. Secrets are omitted.

add_connectionB

Add a named postgres/mysql connection. scope "global" (default) saves it to the user store; "project" saves it to .dbmole.json in the project root. Supports an optional ssh tunnel and a readonly flag. Optional ssl: true or { rejectUnauthorized, ca } (ca = PEM or file path).

update_connectionA

Patch a connection by name in the layer it lives in (project or global). Set a field to null to remove it (e.g. "ssh": null); an ssh object is merged field by field, e.g. { "ssh": { "hostKey": "SHA256:..." } }. queryTimeoutMs sets the per-statement timeout (null restores the 60 s default). ssl is replaced as a whole, not merged like ssh.

remove_connectionB

Remove a connection by name from the layer it lives in (invalid entries too) and drop its cached pools/tunnel.

test_connectionB

Verify a connection works end to end (including ssh tunnel if configured). Reports server version and connect+query latency.

execute_sqlA

Execute a single SQL statement on a named connection. SELECT returns columns/rows; DML returns rowCount (and lastInsertId for mysql). Use positional params: $1.. for postgres, ? for mysql.

list_databasesA

List databases on a connection with size in bytes. Hides postgres template databases and mysql system schemas.

list_tablesB

List tables and views (type: table | view) with approximate row counts. For postgres, optionally filter by schema; for mysql, schema is the database.

describe_tableA

Describe a table or view: columns (type, nullable, default), primary key, indexes and foreign keys.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 9 tools

Disambiguation5/5

Each tool targets a distinct resource+action: five connection-lifecycle tools (add/list/update/remove/test) and four database-introspection/query tools (execute_sql, list_databases, list_tables, describe_table). No two tools overlap in purpose, and the connection-layer semantics (project vs global) are consistently described.

Naming Consistency5/5

All nine names follow a consistent snake_case verb_noun pattern (add_connection, list_tables, describe_table, execute_sql). The only variance is singular vs plural noun for connection tools, which is standard convention rather than inconsistency.

Tool Count5/5

Nine tools is well within the ideal 3-15 range and each earns its place: connection CRUD plus a minimal read/query surface. Nothing feels redundant or padded.

Completeness4/5

Connection lifecycle is fully covered (create, read, update, delete, test) and the SQL surface covers query, database/table listing, and table description. Minor gaps remain — no explicit schema listing for postgres, no transaction/multi-statement support, and no way to browse indexes or routines independently of describe_table.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues