Skip to main content
Glama

Update column metadata

update_column
Idempotent

Add 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

NameRequiredDescriptionDefault
pathYesPath 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.
roleNoOptional - Semantic role: 'dimension', 'measure', 'identifier', or 'attribute'
clearNoOptional - 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.
entityYesEntity 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.
purposeNoOptional - Column purpose override (for example identifier, timestamp, flag, measure, enum, text, or json)
synonymsNoOptional - Complete replacement list of alternative names for this column; supplying it replaces, rather than appends to, the stored list
datasourceNoOptional 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.
descriptionNoOptional - Business description of what this column represents
enum_valuesNoOptional - 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_synonymsNoConsidered answer that there are no useful synonyms; false retracts it
sensitivityNoSensitivity 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_ephemeralNoOptional - Mark this column as deprecated or unsuitable for new work
semantic_typeNoOptional - Semantic type override (e.g., 'event_time', 'scheduled_time', 'soft_delete_timestamp', 'currency_cents', 'status_enum'). Overrides the inferred semantic_type.
fk_target_tableNoResolved FK target entity in this datasource; pair with fk_target_column
fk_target_columnNoResolved FK target path; pair with fk_target_table
glossary_term_idNoBind 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_entityNoOptional - 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_featuresNoOptional - Complete replacement monetary feature object with is_monetary, currency_unit, paired_currency_column, and amount_description
not_a_foreign_keyNoConsidered answer that this field does not reference another entity; false retracts it
timestamp_featuresNoComplete timestamp features: timestamp_purpose, timestamp_scale, is_soft_delete, is_audit_field. Column names guard soft-delete and audit purposes.
classification_pathNoOptional - Classification path override: timestamp, boolean, enum, uuid, external_id, numeric, text, json, or unknown
preferred_alternativeNoOptional - Field to use instead when this one is deprecated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond annotations, which only declare readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description spells out upsert semantics keyed on entity+path, patch-style partial updates (omitted fields preserved), whole-list replacement for enum_values and synonyms, clear-before-write atomicity, a per-field precedence rule where hand-set ('manual') fields are refused with a field-naming error while others stay writable, and the enum label workflow. This clarifies that the destructive surface is narrow and opt-in despite destructiveHint=false, so there is no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and then organized under clear signposts (WHAT THIS CALL CHANGES, TO REMOVE, PRECEDENCE, Example), so an agent can skim to the part it needs. It is long, however, and some content duplicates the schema verbatim, notably the clear-list mechanics and list-replacement semantics, which could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 22-parameter mutation with no output schema, it covers the hard parts an agent would otherwise get wrong: upsert-vs-append behavior, atomic clear-then-set, and permission-like precedence. The one real gap is the return value: with no output schema, the description should say what a successful call reports, especially given that writes can be partially refused per field.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is already 100%, so the baseline is 3. The description still adds meaning beyond it: the entity+path pair as the upsert key, the 'VALUE - Description' enum label convention and the fact that the enum question stays open until every value carries a label, and the distinction between refers_to_entity and the entity being addressed. It does not add per-parameter guidance for the more obscure fields (timestamp_features, monetary_features, glossary_term_id), leaving those entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Add or update semantic information about one field of an entity in the ontology', and immediately scopes it to a column of a row-answering entity or a path inside a document entity. It distinguishes itself from the nearest siblings by name: get_column_metadata for reading current state and delete_column_metadata for removing the field's metadata entirely.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to guidance (read the field first with get_column_metadata if you need to know what is there) and when-not (to remove metadata entirely, use delete_column_metadata; to remove a single field, use the clear list rather than omission). It also names the alternative mechanism for the same outcome, so an agent does not have to infer which route to take.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources