Update column metadata
update_columnAdd or update semantic information about one field of an entity in the ontology — a column of an entity that answers in rows, or a path inside one that answers with a document. The entity and path form the upsert key - if meaning is already attached to that address, it is updated; otherwise it is created. WHAT THIS CALL CHANGES: only the fields you pass. Every field you omit keeps its current value - omitting a field never clears it, so you can safely document a description without disturbing enum_values, refers_to_entity, role, or sensitivity already recorded. Read the field first with get_column_metadata if you need to know what is already there. Each field you do pass overwrites that field outright: enum_values and synonyms replace their entire lists rather than adding to them, so pass the complete set you want, including values that already exist. 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 the 'clear' list - passing an empty string or omitting a parameter will not erase anything. Clearing runs before the rest of the update, in the same transaction, so correcting a field (clear the stale enum_values, set the right role) is one atomic call. To remove the field's metadata entirely instead, call delete_column_metadata. PRECEDENCE is per field: a field a person set in the UI (get_column_metadata shows it in field_sources as 'manual') is protected - writing or clearing it is refused with an error naming that field, and only that field; every field they did not set stays writable, so a hand-set sensitivity never blocks classifying or describing the column. Example: update_column(entity='users', path='status', description='User account status', enum_values=['ACTIVE - Normal active account', 'SUSPENDED - Temporarily disabled'], refers_to_entity='User', role='attribute')
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": {
"entity": "<entity>",
"path": "<path>"
},
"name": "update_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to one field of that entity. For an entity that answers in rows this is a column's name ('status'); for one that answers with a document it is the projection path ('campaign.status', 'result.homes[].price'), and a path ending in '*' is an open region, classified as a unit. | |
| role | No | Optional - Semantic role: 'dimension', 'measure', 'identifier', or 'attribute' | |
| clear | No | Optional - Field names to REMOVE from this field's metadata, e.g. ['enum_values']. This is the only way to delete a field: omitting a parameter preserves it, it does not clear it. Clearing runs before the rest of the update, in the same transaction, so correcting a field (clear the stale enum_values, set the right role) is one atomic call. Clearable: classification_path, description, enum_values, refers_to_entity, is_ephemeral, monetary_features, preferred_alternative, purpose, role, semantic_type, sensitive, synonyms, timestamp_features, not_a_foreign_key, no_synonyms, fk_target_table, fk_target_column. Naming a field here and also passing it as a parameter is rejected. | |
| entity | Yes | Entity to address: a table of rows or a document, named `schema.entity` (for example 'google_ads.campaign_status') or by its bare name when that is unambiguous in the datasource. | |
| purpose | No | Optional - Column purpose override (for example identifier, timestamp, flag, measure, enum, text, or json) | |
| synonyms | No | Optional - Complete replacement list of alternative names for this column; supplying it replaces, rather than appends to, the stored list | |
| 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. | |
| description | No | Optional - Business description of what this column represents | |
| enum_values | No | Optional - Complete replacement array of enumeration values, each written as 'VALUE - Description' (e.g., ['ACTIVE - Normal account', 'SUSPENDED - Temporary hold']). The description after ' - ' is the value's label; a bare value stores an empty label and leaves the enum question open. Existing measured count, percentage, and category are preserved for matching values; counts cannot be supplied here. | |
| no_synonyms | No | Considered answer that there are no useful synonyms; false retracts it | |
| sensitivity | No | Sensitivity class for this field: 'pii' = personal data, including PII the detectors missed; 'sensitive' = sensitive but not personal (salaries, contract values, cost); 'not_sensitive' = explicitly not sensitive, which releases a column the detectors flagged; 'auto' = no override, detection decides, and it clears a class a previous call set. 'phi' is reserved and refused until PHI ships. Omit to leave the field as it is. | |
| is_ephemeral | No | Optional - Mark this column as deprecated or unsuitable for new work | |
| semantic_type | No | Optional - Semantic type override (e.g., 'event_time', 'scheduled_time', 'soft_delete_timestamp', 'currency_cents', 'status_enum'). Overrides the inferred semantic_type. | |
| fk_target_table | No | Resolved FK target entity in this datasource; pair with fk_target_column | |
| fk_target_column | No | Resolved FK target path; pair with fk_target_table | |
| glossary_term_id | No | Bind this schema column to an existing glossary term UUID; an empty string removes the binding. Approved requests resolve their terms through this column. | |
| refers_to_entity | No | Optional - Entity this field refers to (e.g., 'User', 'Account'). It names what the field points at, which is a different statement from the 'entity' this call addresses. | |
| monetary_features | No | Optional - Complete replacement monetary feature object with is_monetary, currency_unit, paired_currency_column, and amount_description | |
| not_a_foreign_key | No | Considered answer that this field does not reference another entity; false retracts it | |
| timestamp_features | No | Complete timestamp features: timestamp_purpose, timestamp_scale, is_soft_delete, is_audit_field. Column names guard soft-delete and audit purposes. | |
| classification_path | No | Optional - Classification path override: timestamp, boolean, enum, uuid, external_id, numeric, text, json, or unknown | |
| preferred_alternative | No | Optional - Field to use instead when this one is deprecated |