set_table_metadata
Rename a table, say what it holds, and set its unique keys and checks; omitted fields stay. checks: range or multiple_of on a number, text or length (characters) on text. Keys and checks are enforced on later writes; rows already breaking them stay; their columns' types lock. description also gives its source and what one row is; at most 10000 bytes; blank is refused. Last write wins. A connector table takes a description but no name. Check describe_table.capabilities.can_rename and can_describe first. Safe to repeat.
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": "set_table_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New display name. Must not be blank. | |
| checks | No | The table's whole list of checks, naming columns by `column_id`; it replaces the one `describe_table` reports, and `[]` removes them all. | |
| model_id | Yes | The model that OWNS the table. | |
| table_id | Yes | ||
| description | No | What the table holds, for the person who opens the model later. | |
| unique_keys | No | The table's whole list of unique keys, naming columns by `column_id`; it replaces the one `describe_table` reports, and `[]` removes them all. Only text, uuid, integer, decimal, date and timestamp columns can be in a key. | |
| expected_version | No | Optional optimistic-concurrency guard for the rename (see edit_rows). | |
| clear_description | No | `true` removes the table's description. |