Skip to content

Get Lineage Tool

This tool retrieves data lineage for a catalog object: the chain of objects that feed into it (upstream) or that depend on it (downstream). Use it to answer questions like “what feeds into this table?”, “what breaks if I change this column?”, or “where does this report’s data come from?”

Add this tool to an agent that needs to reason about data flow, dependencies, or impact analysis. It powers the out-of-the-box Lineage Agent.

You give it a starting object and a direction, and it returns the connected graph.

ParameterRequiredTypeSuggested scopeWhat it does
directionYes"upstream" or "downstream"Agent determinedupstream returns sources (inputs); downstream returns destinations (outputs).
otypeYesstringAgent determinedThe object type of the starting point, e.g. "table" or "attribute". For column-level lineage use "attribute", not "table".
root_node_idsYeslist of IDsAgent determinedThe object IDs to trace from. All must be the same otype, e.g. [123, 456].
allowed_otypesNolist of stringsAgent determinedFilters which object types appear in the returned graph. Does not change the starting point.
max_depthNointeger (default 10)FixedHow many levels deep to traverse.
limitNointeger (default 1000, max 1000)FixedMaximum number of nodes returned.
excluded_schema_idsNolist of integersFixed or User inputSchema IDs to exclude from results, e.g. test schemas.
show_temporal_objectsNoboolean (default false)FixedInclude temporary objects in the graph.
design_timeNo1, 2, or 3 (default 3)Fixed3 for both design- and run-time, 1 for design-time only, 2 for run-time only.
time_from / time_toNotimestamp stringUser inputLimit lineage to a time window, format YYYY-MM-DDTHH:MM:SS.
processing_modeNo"complete" or "chunked"Fixedcomplete (default, recommended) returns the whole graph; chunked returns it in batches.

See Configuring tool parameters for what the scope column means.

Find the tables that feed a single table:

{
"otype": "table",
"root_node_ids": [123],
"direction": "upstream",
"allowed_otypes": ["table"]
}

Column-level lineage for specific columns (note otype is attribute):

{
"otype": "attribute",
"root_node_ids": [1024, 1089, 1104],
"direction": "upstream",
"allowed_otypes": ["attribute"]
}

A JSON object with a graph (the connected objects and their relationships), the direction traversed, and pagination details when results are chunked.