patchColumn
Update an existing database column's attributes including type, nullability, default value, identity generation, and comment.
Instructions
Update existing column(s).
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": {
"schema": "<schema>",
"table": "<table>",
"column": "<column>"
},
"name": "patchColumn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | Schema name | |
| table | Yes | Table name | |
| column | Yes | Column names | |
| name | No | Column name. | |
| type | No | Column type, e.g. varchar, integer, boolean. Array types use [] (e.g. varchar[]). | |
| is_nullable | No | Whether the column allows NULL values. | |
| default_value | No | Default value used when no value is provided. | |
| identity_generation | No | Identity generation mode for auto-generated values. | |
| comment | No | Comment for the column. |