Skip to main content
Glama

Update metadata for many columns

update_columns
Idempotent

Update 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

NameRequiredDescriptionDefault
updatesYesArray of field updates, each with entity, path, and the metadata arguments update_column takes
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare non-readOnly, idempotent, non-destructive) by disclosing the partial-update contract, list-replacement semantics, clear-before-write ordering, per-field precedence refusals, the 50-entry cap, and the all-or-nothing transaction with rolled_back status reporting. That is exactly the operational detail an agent needs before issuing a batch mutation.

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?

Purpose and useful-pattern guidance are front-loaded, and the WHAT/TO REMOVE/PRECEDENCE/ALL OR NOTHING sectioning makes a long description navigable. It loses a point for redundancy: the omit-never-clears rule is stated three separate times and the full list of 13 per-field arguments repeats schema content that is already at 100% coverage.

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

Completeness5/5

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

For a transactional batch mutation with no output schema, the description covers everything that matters: write scope, preservation semantics, clearing, protected-field precedence, batch limit, and failure/rollback behavior including the response status values. An agent can call this correctly and recover from a failed batch using only the description.

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 coverage is 100%, so the baseline is 3. The description still adds meaning the schema does not state plainly: that omitted fields are never cleared, that clearing runs before an entry's other changes making a correct-and-set atomic, and the 'VALUE - Description' enum-label contract. Some of this duplicates schema text (e.g. 'complete replacement list'), keeping it below a 5.

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?

States a specific verb and resource with batch scope baked in: "Update metadata for many fields in a single call." It explicitly positions itself against update_column (identical per-field behavior) and delete_column_metadata (full removal), so an agent can distinguish it from the nearest siblings without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete usage context ("Useful for applying the same pattern across entities (e.g., soft delete, audit timestamps)") and an explicit alternative for the removal case (delete_column_metadata). It stops short of stating the inverse routing rule, e.g. "use update_column for a single field," leaving the batch-vs-single choice to inference from "many fields".

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