analyze_migration
Audit PostgreSQL and MySQL SQL DDL or migration paths against DBA standards before deployment, flagging risky data types, unindexed foreign keys, locking DDL hazards, and normalization issues.
Instructions
Audit SQL DDL statements, migration files, or migration directory against DBA best-practice rules (data types, unindexed FKs, locking DDL hazards, 1NF, alignment padding) for PostgreSQL or MySQL.
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": {
"dialect": "<dialect>",
"migration_source": "<migration_source>"
},
"name": "analyze_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dialect | Yes | Target database engine dialect. | |
| strictness | No | standard | |
| engine_version | No | Database version (e.g., 16 for PG, 8.0 for MySQL). | latest |
| migration_source | Yes | Provide raw_sql, file_paths array, or migration_dir path. |