analyze_liquibase_yaml
Analyzes Liquibase YAML changelogs to identify lock contention risks, data loss potential, and unsafe patterns. Supports all major change types and inline SQL analysis.
Instructions
Analyze a Liquibase YAML changelog for lock risks, data loss potential, and unsafe patterns. Supports all major change types: createTable, dropTable, addColumn, dropColumn, modifyDataType, addNotNullConstraint, createIndex, dropIndex, addForeignKeyConstraint, dropForeignKeyConstraint, renameTable, renameColumn. Inline sql changeSets are also analyzed for TRUNCATE, DELETE without WHERE, and UPDATE without WHERE. Returns lock risk severity (ACCESS EXCLUSIVE, SHARE locks) and data loss risk per operation.
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": {
"yaml": "<yaml>"
},
"name": "analyze_liquibase_yaml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | The Liquibase YAML changelog content |