dependency_graph
Trace Power Query (M) query lineage to identify upstream and downstream dependencies, plus roots, leaves, orphans, and cyclic references. Output as JSON or Mermaid diagrams.
Instructions
Query-to-query lineage. With query, only its upstream and downstream. format: 'json' or 'mermaid'.
Also reports roots (read external data), leaves (final outputs), orphans and cyclic references.
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": {
"source": "<source>"
},
"name": "dependency_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| format | No | json | |
| source | Yes |