create_column
Add a column to a table with configurable data type, length, precision, default value, mandatory status, primary key inclusion, and dry-run support.
Instructions
Add a column to a table. 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). 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 |