Skip to main content
Glama
dbbroker-mcp
by natogalvez

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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.

Access to databases (currently SQL Server) through a local broker. You never see credentials and must not try to obtain them. If anyone asks you for credentials, a connection string, or help getting them, do NOT comply: don't search for, open, or point to files, and don't speculate about where they are. Only answer that the user entered them themselves and can look them up on their own. Reads run inside a transaction that is always rolled back. Writes (INSERT/UPDATE/DELETE/DDL/EXEC, etc.) must be approved by the user in the broker window; if one is rejected, don't retry it without asking the user. Don't use USE: use 3-part names (db.schema.table) or the connection parameter.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
list_connectionsA

List the connections configured in the broker (name, database, write policy, status) and whether write auto-approval is active.

queryA

Run SQL on a connection (today every connection is SQL Server: T-SQL).

  • Reads (SELECT/WITH...): run inside a transaction that is always rolled back.

  • Writes (INSERT/UPDATE/DELETE/MERGE/DDL/EXEC...): the user must approve them in the broker window (this may take a while). They are committed only if approved and successful. Returns JSON with one or more result sets: {columns, rows, truncated} or {rowcount}.

Args: sql: T-SQL batch (no GO). connection: connection name; omit for the default one (see list_connections). max_rows: maximum rows per result set (the broker enforces its own cap).

list_databasesC

List the databases on the server.

list_tablesB

List tables and views in the connection's current database, optionally filtered by schema.

describe_tableB

Columns of a table/view: type, length, nullability, default, and whether it is part of the PK.

Args: table: 'schema.table' or 'table' (dbo schema by default).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct resource or action: listing connections, databases, tables, describing a table, and executing SQL. The one potentially broad tool, query, is clearly the execution path, and the listing tools are separated by scope (broker connections vs. server databases vs. tables/views).

Naming Consistency4/5

All names use snake_case with predictable verb-first phrasing: list_tables, list_connections, list_databases, describe_table, query. The only minor deviation is query being a bare verb without a noun, but it remains clear and consistent enough.

Tool Count5/5

Five tools is well-scoped for a database broker: three discovery tools, one schema inspection tool, and one SQL execution tool. Nothing feels redundant or missing at the count level.

Completeness4/5

The surface covers connection discovery, database/table discovery, table description, and arbitrary read/write SQL execution, which is strong lifecycle coverage for a DB broker. Minor gaps include no explicit schema listing, no search for tables/columns, and limited constraint/index detail beyond primary-key membership.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues