create_column
Add a new column to an existing table in a Structly schema. Configure its name, data type, primary key status, nullability, and default value.
Instructions
Добавить колонку в таблицу.
Args:
schema_uuid: UUID схемы.
table_uuid: UUID таблицы.
column_name: Название колонки.
column_type: Тип данных PostgreSQL (например, uuid, bigint, text).
is_primary: Является ли колонка первичным ключом.
is_nullable: Может ли колонка содержать NULL.
column_default: Значение по умолчанию (например, gen_random_uuid()).
branch_name: Ветка схемы (по умолчанию main).
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_uuid": "<schema_uuid>",
"table_uuid": "<table_uuid>",
"column_name": "<column_name>",
"column_type": "<column_type>"
},
"name": "create_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_primary | No | ||
| table_uuid | Yes | ||
| branch_name | No | main | |
| column_name | Yes | ||
| column_type | Yes | ||
| is_nullable | No | ||
| schema_uuid | Yes | ||
| column_default | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |