migrate-lint
Analyze database migration directories to detect issues, validate schemas, and ensure migration integrity using Ariga Atlas CLI.
Instructions
Run analysis on migration directory to detect issues
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": {
"dirUrl": "<dirUrl>"
},
"name": "migrate-lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirUrl | Yes | URL to migration directory (required) | |
| devUrl | No | URL for dev database for analysis | |
| latest | No | Only check the latest N migrations | |
| gitBase | No | Git base ref to compare against | |
| format | No | Output format: text or json |