Skip to main content
Glama
pg-migration-verify
by ColeUD

List recorded migrations

list_recorded_migrations
Read-onlyIdempotent

Retrieve migration versions recorded as applied by the Supabase CLI to inspect migration history and spot missing or unreadable tracking tables.

Instructions

Show which migration versions the Supabase CLI recorded as applied in supabase_migrations.schema_migrations. A missing or unreadable table is reported in the result (history.status 'missing' or 'not_readable', with the grants needed), not as an error. This list is bookkeeping, not proof: migrations pasted into the SQL editor are never recorded, and a recorded one may be incomplete. Use verify_migration or verify_all to see whether objects exist. Read-only: it reads migration files and pg_catalog inside a READ ONLY transaction, and never runs migration SQL or writes anything. Needs a database URL (PGMV_DATABASE_URL or DATABASE_URL); without one it returns an error saying how to configure it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_recorded_migrations"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
historyYesWhether the recorded migration history could be read
migrationsYesRecorded versions, sorted; empty unless history.status is ok

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations, it discloses that a missing or unreadable table is reported in the result rather than raised as an error, that reads happen in a READ ONLY transaction, that it never executes migration SQL, and that it requires PGMV_DATABASE_URL or DATABASE_URL with a descriptive failure otherwise. These are exactly the non-obvious behaviors an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence, followed by result-shape caveats, then usage routing, then safety/configuration. No sentence is redundant given the tool's caveat-heavy nature.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't enumerate return fields, and it still explains the history.status values that matter. Configuration requirements and failure modes are covered, leaving nothing an agent needs before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes no parameters, so there is no per-argument semantics to convey; the description instead explains the environment-level input (database URL env vars) that controls invocation. Baseline for zero parameters applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Show which migration versions the Supabase CLI recorded as applied') and names the exact table, so the agent knows precisely what is returned. It is clearly separable from verify_migration/verify_all, which are named as the tools that check object existence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use verify_migration or verify_all to see whether objects exist, because this list is bookkeeping rather than proof. It also explains the edge cases (migrations run in the SQL editor are never recorded) that determine when this tool gives a misleading negative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.