Skip to main content
Glama
seayniclabs

Berth

by seayniclabs

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
safety_set_modeB

Switch the safety mode.

Accepts: "read-only", "write", or "admin". Returns the current mode after setting.

safety_get_modeA

Return the current safety mode without changing it.

healthA

Server health check. Returns version and status.

db_connectA

Connect to a database.

Supported DSN formats:

  • postgresql://user:pass@host/db

  • sqlite:///path/to/file.db (or :memory:)

  • mysql://user:pass@host/db

Returns a connection_id used by all other tools.

db_queryA

Execute a SELECT query. Auto-adds LIMIT 1000 if no LIMIT clause present.

db_executeA

Execute INSERT/UPDATE/DELETE statements.

Respects the current safety mode:

  • read-only: rejects all writes

  • write: allows INSERT/UPDATE/DELETE, blocks DROP/TRUNCATE

  • admin: allows everything (destructive ops need a confirmation_token)

db_schemaB

List tables, views, and indexes in the database.

db_describeB

Column details for a table: name, type, nullable, default, constraints.

db_relationshipsB

Foreign key relationships. Omit table to show all.

db_sizeC

Database and table sizes.

db_active_queriesC

Currently running queries (PostgreSQL only — pg_stat_activity).

db_explainB

Run EXPLAIN ANALYZE on a query and return the plan.

db_backupA

Create a database backup.

  • PostgreSQL: uses pg_dump

  • MySQL: uses mysqldump

  • SQLite: uses .backup via sqlite3 CLI

Paths are sandboxed to BERTH_BACKUP_DIR (default: cwd).

db_restoreA

Restore a database from a backup file.

Requires admin mode and a confirmation token (destructive operation). Paths are sandboxed to BERTH_BACKUP_DIR (default: cwd).

generate_migrationA

Generate migration SQL by comparing two schemas.

Two modes of operation:

Mode 1 — Compare live database against target DDL:

  • connection_id: source database connection

  • target_sql: CREATE TABLE statements describing the desired schema

Mode 2 — Compare two live databases:

  • from_connection: source database connection_id

  • to_connection: target database connection_id

Returns dialect-aware ALTER statements to migrate source -> target. Destructive operations (DROP TABLE, DROP COLUMN) are commented out for safety.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/seayniclabs/berth'

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