You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove get_model_parents/get_model_children; enrich get_lineage with description
get_lineage(depth=1) already covers the immediate-parent/child use case.
Adding description to lineage nodes preserves the information that was
available via the removed tools. Removes ~200 LOC of dead client code.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
body: Remove get_model_parents and get_model_children tools; get_lineage(depth=1) provides the same information and now also returns a description field per node
Copy file name to clipboardExpand all lines: src/dbt_mcp/prompts/discovery/get_lineage.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,33 @@ A list of all nodes in the connected subgraph, where each node contains:
7
7
-`uniqueId`: The resource's unique identifier
8
8
-`name`: The resource name
9
9
-`resourceType`: The type of resource (Model, Source, etc.)
10
+
-`description`: A description of the resource
10
11
-`parentIds`: List of unique IDs that this resource directly depends on
11
12
13
+
**Getting immediate parents or children:** use `depth=1`. This returns the target node plus its direct upstream dependencies and direct downstream dependents.
14
+
12
15
**Example Response:**
13
16
```json
14
17
[
15
18
{
16
19
"uniqueId": "source.raw.users",
17
20
"name": "users",
18
21
"resourceType": "Source",
22
+
"description": "Raw user events from the application",
19
23
"parentIds": []
20
24
},
21
25
{
22
26
"uniqueId": "model.stg_customers",
23
27
"name": "stg_customers",
24
28
"resourceType": "Model",
29
+
"description": "Staged customer records",
25
30
"parentIds": ["source.raw.users"]
26
31
},
27
32
{
28
33
"uniqueId": "model.customers",
29
34
"name": "customers",
30
35
"resourceType": "Model",
36
+
"description": "Customer dimension model",
31
37
"parentIds": ["model.stg_customers"]
32
38
}
33
39
]
@@ -38,12 +44,12 @@ A list of all nodes in the connected subgraph, where each node contains:
38
44
# Get complete lineage (all connected nodes, all types, default depth of 5)
0 commit comments