Skip to main content
Glama

Read column metadata

get_column_metadata
Read-onlyIdempotent

Get current ontology metadata for one field of an entity — a column of an entity that answers in rows, or a path inside one that answers with a document. Returns classification, synonyms, feature details, deprecation guidance, provenance, and the field's own type information (data_type, is_nullable, is_primary_key). Use this before update_column to see what's already documented. Example: get_column_metadata(entity='users', path='status'), or get_column_metadata(entity='google_ads.campaign_status', path='campaign.status') for a field inside a document.

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": "get_column_metadata"
  }
}

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.
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.
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

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description does add value beyond that by enumerating what comes back (classification, synonyms, feature details, deprecation guidance, provenance, type info), which matters because there is no output schema. It says nothing about the cost or latency of the call or what happens on a missing/unclassified path, leaving the behavioral picture incomplete.

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 the core action and the row/document distinction before the return-value list and examples. The two worked examples are long but earn their place by pinning down the path syntax; no filler sentences.

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 read-only, three-parameter lookup with no output schema, the description covers addressing modes, return contents and the relationship to update_column. The only gap is the datasource selection/default behavior, which is fully documented in the schema, so the omission is minor.

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

Parameters3/5

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

Schema coverage is 100%, including detailed descriptions for entity, path (row column vs. projection path, '*' open regions) and datasource. The description's examples restate the row-vs-document distinction already in the schema, so it adds concreteness but no new semantics. Baseline 3 is appropriate when the schema does the heavy lifting.

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 (get ontology metadata for one field) and immediately disambiguates the two addressing modes — a column of a row-answering entity vs. a path inside a document. It also names the sibling it precedes (update_column), so an agent can distinguish it without opening another 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 an explicit when-to-use rule: 'Use this before update_column to see what's already documented,' which names the alternative and the ordering. It does not say when to prefer get_ontology or probe_column instead, so the guidance is clear but not exhaustive.

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