Update metadata for many columns
update_columnsUpdate metadata for many fields in a single call. Each entry addresses one field by its entity and path - a column of an entity that answers in rows, or a projection inside one that answers with a document - and accepts the same per-field arguments as update_column (classification_path, purpose, description, semantic_type, enum_values, synonyms, monetary_features, refers_to_entity, role, sensitivity, is_ephemeral, preferred_alternative, glossary_term_id), behaving identically for each entry. Useful for applying the same pattern across entities (e.g., soft delete, audit timestamps). WHAT THIS CALL CHANGES: for each entry, only the fields you pass. Every field you omit keeps its current value - omitting a field never clears it, so a description-only batch will not disturb enum_values, refers_to_entity, role, or sensitivity. Each field you do pass overwrites that field outright: enum_values and synonyms replace their entire lists rather than adding to them. Each enum_values entry is written 'VALUE - Description': the text after ' - ' is the value's label, and the enum question stays open until every value carries one. TO REMOVE a field, name it in that entry's 'clear' list - omitting a parameter never erases anything. Clearing runs before the entry's other changes, so correcting a field (clear the stale enum_values, set the right role) is one atomic entry. To remove a field's metadata entirely, call delete_column_metadata instead. PRECEDENCE is per field: an entry that writes or clears a field a person set in the UI is refused with an error naming that field, while entries that leave protected fields alone validate - a hand-set sensitivity seals the sensitivity setting, never the column. Maximum 50 updates per call. ALL OR NOTHING: every entry is validated before any is applied, and the writes run in one transaction. If any entry fails, the whole batch is rolled back and nothing changes - you never end up with some columns updated and others not. On failure the response marks the entry that failed with status 'error' and the rest 'rolled_back'; correct that entry and send the same call again.
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": {
"updates": "<updates>"
},
"name": "update_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | Array of field updates, each with entity, path, and the metadata arguments update_column takes | |
| datasource | No | Optional datasource ID to target. Omit to use the project's configured default; required when the project has multiple datasources and no default is configured. Each datasource has its own SQL dialect: get_schema lists every datasource with its type, dialect and identifier quote, and every result carries datasource_type and dialect. A datasource that has not finished setup is refused with datasource_not_ready. |