apply_schema_patch
Apply structured schema patch operations to a PowerDesigner model, with atomic rollback on failure and dry-run plan preview.
Instructions
Apply an ordered list of structured patch operations to a model. operations: [{op: create_table|alter_table|rename_table|drop_table|add_column|alter_column|drop_column|create_primary_key|drop_primary_key|create_reference|alter_reference|drop_reference|create_index|alter_index|drop_index|create_domain, ...}]. Execution stops at the first failure and (atomic, default) rolls back. dry_run=true returns the plan.
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": {
"model_id": "<model_id>",
"operations": "<operations>"
},
"name": "apply_schema_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atomic | No | ||
| dry_run | No | ||
| model_id | Yes | ||
| operations | Yes |