add_column
Add a column. data_type is spelled as describe_table reports it (list_column_types lists them), default string. For fixed options use categorical with the labels in categories. Returns the new column_id and the table version. Pass idempotency_key to avoid a duplicate column on retry.
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_id": "<table_id>",
"name": "<name>"
},
"name": "add_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the new column. | |
| model_id | Yes | ||
| table_id | Yes | ||
| data_type | No | Column type, in the same spelling `describe_table` reports: "string", "i64", "f64", "bool", "date", … (`list_column_types` lists them all). Defaults to "string". | |
| categories | No | For a "categorical" column: its option labels (implies "categorical" when `data_type` is omitted). Cells then take these labels. | |
| idempotency_key | No | Optional idempotency key — a retry with the same key will not add a second column. | |
| expected_version | No | Optional optimistic-concurrency guard (see edit_rows). |