Record Developer Database Migration
dev_database_migrateRECORDS the outcome of a database migration YOU (or your agent)
ALREADY RAN LOCALLY against your own developer database. Meridian does
NOT execute migrations for you. There is no server-side migration
runner, and calling this tool never applies any schema change by
itself. To actually run a migration, use the Meridian CLI's
meridian migrate command locally (it runs npx prisma migrate dev against your proxied developer database and calls this same
recording step automatically). Only call this tool yourself if you
ran the migration another way (e.g. Prisma directly) and want the
run to show up in the same history dev_database_get and the
dashboard display.
Takes the app_id returned by apps_list, the exact command you
ran, its status (success, failed, or rolled_back), and
optional started_at/finished_at (ISO-8601) and output_excerpt
(truncated to 5000 characters). IDEMPOTENT: re-reporting the exact
same command + started_at for this developer database returns the
SAME recorded run (created: false) instead of creating a
duplicate: safe to retry after a dropped response.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"command": "<command>",
"status": "<status>"
},
"name": "dev_database_migrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app uuid returned by `apps_list`. | |
| status | Yes | Outcome of the run: `success`, `failed`, or `rolled_back`. | |
| command | Yes | The exact command you ran locally, e.g. `npx prisma migrate dev --name add_orders`. | |
| started_at | No | ISO-8601 timestamp the migration run started, if known. | |
| finished_at | No | ISO-8601 timestamp the migration run finished, if known. | |
| output_excerpt | No | A short excerpt of the command's output, for debugging context. Truncated to 5000 characters. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |