Skip to main content
Glama
Bollard-db

Bollard MCP

Official
by Bollard-db

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.

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
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
connect_databaseC

Connect to a database.

disconnectB

Disconnect from a database.

list_connectionsA

List all currently active database connections.

Returns alias, dialect, permission mode, and connection time.

reconnect_savedA

Reconnect to a previously saved connection from the OS Keyring.

list_tablesA

List all tables in the connected database with row counts and sizes.

The editor AI uses this to understand the database structure before generating queries. Schema is served from cache when available.

describe_tableA

Show full column definitions, types, constraints, and indexes for a table.

Includes: column names, data types, nullable, primary key, unique, foreign keys. The editor AI reads this to understand the exact schema before generating queries.

get_sample_dataA

Preview a few rows from a table to understand its data shape.

Useful for the editor AI to understand the actual values in the database before generating queries (e.g., what status values exist, date formats, etc.)

refresh_schemaA

Force a schema cache refresh for a connection.

Call this after CREATE TABLE, ALTER TABLE, or any DDL operation to ensure the AI has up-to-date schema context.

preview_queryA

Dry-run a query through the full safety + intent pipeline.

Returns:

  • Safety verdict (SAFE / BLOCKED with reason)

  • Intent analysis (interpreted intent, assumed filters, ambiguity warnings)

  • EXPLAIN cost estimate (PostgreSQL only)

  • Final SQL with auto-LIMIT applied

For bare SELECT * queries on large tables, Bollard will automatically redirect to profile_table to give the AI richer context with fewer tokens.

The editor AI should call this before execute_query for any non-trivial query.

execute_queryC

Execute a SQL query through the risk-tiered safety pipeline.

profile_tableA

Generate a statistical profile of a database table.

All aggregation is performed directly in the database via SQL queries. No rows are transferred to local memory. Returns a compact Markdown summary suitable for AI context (< 150 tokens overhead per column).

Includes for every column:

  • Row count and null percentage

  • Distinct value count

  • Min / Max / Avg (numeric and date columns)

  • Top-5 value distribution for categorical columns (<= 100 distinct values)

log_correctionA

Log a query correction for future AI context.

When the editor AI generates a wrong query and the user corrects it, log the correction here. Bollard persists it and exposes it via the bollard://corrections/{alias} MCP Resource, so the AI automatically learns from past mistakes without the user repeating themselves.

get_query_historyA

Return recent query history for a connection.

Useful for the editor AI to understand what has been executed recently, especially when the user says "run that again" or "fix the last query."

get_correctionsA

Return all logged corrections for a connection.

The editor AI reads this via the bollard://corrections/{alias} MCP Resource automatically. Call this tool directly to inspect them.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
connections_resourceAll active database connections. Read by the AI to know what's available.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bollard-db/Bollard'

If you have feedback or need assistance with the MCP directory API, please join our Discord server