Skip to main content
Glama

Horizon Get Column Lineage

horizon_get_column_lineage
Read-onlyIdempotent

Trace a column's origin and transformation lineage from Snowflake access history, including direct, base, and modified objects, to understand data flow and dependencies.

Instructions

Trace origin and transformation lineage for one column from SNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORY (direct objects, base objects, and objects modified, including baseSources and directSources). The view lags up to 3 hours and requires Enterprise Edition (or higher).

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": {
      "table_name": "<table_name>",
      "column_name": "<column_name>"
    },
    "name": "horizon_get_column_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
limitNo
databaseNoQuote names that aren't all uppercase, exactly as list tools return them.
table_nameYesQuote names that aren't all uppercase, exactly as list tools return them.
column_nameYesQuote names that aren't all uppercase, exactly as list tools return them.
schema_nameNoQuote names that aren't all uppercase, exactly as list tools return them.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.1.1
    • addedInput schema / properties / database / description
      Added value: +"Quote names that aren't all uppercase, exactly as list tools return them."
    • addedInput schema / properties / schema_name / description
      Added value: +"Quote names that aren't all uppercase, exactly as list tools return them."
  2. Changed2 schema fields changedv3.0.0
    • addedInput schema / properties / column_name / description
      Added value: +"Quote names that aren't all uppercase, exactly as list tools return them."
    • addedInput schema / properties / table_name / description
      Added value: +"Quote names that aren't all uppercase, exactly as list tools return them."
  3. Addedv2.0.4

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuinely non-obvious behavior: the underlying ACCESS_HISTORY view lags up to 3 hours and requires Enterprise Edition or higher, which affects both trust in freshness and whether the call will succeed at all.

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

Conciseness5/5

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

Two dense sentences with zero filler: the first defines the operation and its output shape, the second carries the two operational caveats. Scope is front-loaded before the caveats.

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?

An output schema exists, so return values need no explanation, and the description covers source, freshness, and edition requirement. The remaining gap is the unwindowed parameters (days, limit) whose effect on result size and history depth is left unstated.

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 67%, with descriptions on database, table_name and column_name but nothing on days, limit, or schema_name. The description implies a historical window by naming ACCESS_HISTORY but does not explain what days or limit control, so it adds little meaning beyond 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?

States a specific verb and resource ('Trace origin and transformation lineage for one column') and pins down the data source (SNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORY) plus the lineage components returned (direct objects, base objects, modified objects, baseSources, directSources). The 'one column' scope distinguishes it from the object-level lineage sibling without naming it.

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

Usage Guidelines3/5

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

Usage is only implied: the column-level scope suggests when to prefer it over object-level lineage, but no alternative is named and no when-not condition is stated. The prerequisites (Enterprise Edition, 3-hour lag) are helpful context but are constraints, not selection guidance.

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

Deploy Server

Other Tools