create_column
Adds a column (attribute) to a table in a PowerDesigner model, including data type, length, precision, default value, and mandatory flag. Supports dry-run preview before applying changes.
Instructions
Add a column to a table (an attribute, in CDM/LDM terms). Supported properties: name, code, data_type (e.g. 'VARCHAR', 'INT', 'DATETIME'), length, precision, mandatory, default_value, comment, description, domain (ref or code), primary (include in primary key). In a CDM/LDM the data type is rendered in PowerDesigner's own vocabulary ('Variable characters(20)') and 'primary' is ignored - primacy is set with create_primary_key. Supports dry_run.
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>",
"table_ref": "<table_ref>",
"name": "<name>"
},
"name": "create_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| name | Yes | ||
| domain | No | ||
| length | No | ||
| comment | No | ||
| dry_run | No | ||
| primary | No | ||
| model_id | Yes | ||
| data_type | No | ||
| mandatory | No | ||
| precision | No | ||
| table_ref | Yes | ||
| default_value | No |