Skip to main content
Glama

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.

Use zerolock-mcp to audit PostgreSQL 14-17 and MySQL 8.0/8.4 DDL migrations offline for ACCESS EXCLUSIVE lock queues, full table rewrites, non-concurrent indexes, and missing lock_timeout guards, rewrite hazardous migrations into multi-phase zero-downtime Expand/Contract + Rollback scripts, estimate QPS outage blast radius, and scan Prisma/Drizzle/Flyway migration directories.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
audit_sql_migration_locksA

Audits PostgreSQL 14-17 and MySQL 8.0/8.4 DDL statements for ACCESS EXCLUSIVE lock queues, full table rewrites, non-concurrent index builds, unvalidated foreign keys, and missing lock_timeout guards.

generate_zero_downtime_ddlA

Rewrites hazardous SQL migrations into multi-phase Expand/Contract runbooks using CREATE INDEX CONCURRENTLY, NOT VALID + VALIDATE CONSTRAINT, lock_timeout, ALGORITHM=INSTANT, and emergency Rollback scripts.

estimate_ddl_blast_radiusA

Estimates lock duration in seconds, connection-pool exhaustion risk, and blocked read/write query counts given SQL DDL statements, target table row count, and production QPS.

audit_migration_directoryB

Recursively scans Prisma, Drizzle, Flyway, or raw .sql migration directories for CRITICAL and HIGH deployment lock-queue and full-table-rewrite hazards.

Prompts

Interactive templates invoked by user choice

NameDescription
review-pr-migration-locksAudit a pull-request SQL migration for ACCESS EXCLUSIVE lock queues, table rewrites, and connection-pool exhaustion before deployment.
rewrite-zero-downtime-runbookConvert a blocking ORM-generated PostgreSQL or MySQL migration into a safe Phase 1 Expand + Phase 2 Validate/Contract + Rollback runbook.

Resources

Contextual data attached and managed by the client

NameDescription
16 PostgreSQL & MySQL Zero-Downtime DDL Hazard RulesStructured catalog of the 16 lock-queue, table-rewrite, and online-DDL rules enforced by zerolock-mcp.
PostgreSQL 14-17 & MySQL 8.0 Zero-Downtime Migration PlaybookReference guide for lock_timeout, CREATE INDEX CONCURRENTLY, NOT VALID + VALIDATE CONSTRAINT, and MySQL ALGORITHM=INSTANT.

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct input/action pair: auditing raw DDL statements, generating a zero-downtime rewrite, estimating runtime blast radius from row counts/QPS, and recursively scanning a migration directory. The two 'audit' tools are separated cleanly by input type (inline SQL vs. a directory path), so misselection risk is minimal.

Naming Consistency5/5

All four names follow a verb_noun snake_case pattern (audit_/generate_/estimate_ + domain object) and use the same vocabulary (ddl, migration, lock) as the descriptions. No mixed casing or verb-style drift.

Tool Count5/5

Four tools is a tight, purposeful surface for a migration-safety domain: analyze, rewrite, quantify risk, and batch-scan. Nothing is redundant and each tool maps to a distinct stage of the workflow.

Completeness4/5

The surface covers the core lifecycle — detect hazard, rewrite safely, estimate impact, and sweep a directory — with rollback generation folded into the rewrite tool. Minor gaps remain, such as validating or re-checking an already-applied migration and no explicit support beyond PostgreSQL/MySQL, but these are workable around existing tools.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues