List recorded migrations
list_recorded_migrationsRetrieve 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | Yes | Whether the recorded migration history could be read | |
| migrations | Yes | Recorded versions, sorted; empty unless history.status is ok |