Skip to main content
Glama

pbi_get_measure_lineage

Read-onlyIdempotent

Trace a DAX measure's bidirectional lineage to find direct columns, base measures, downstream dependent KPIs, and bound reports. Use it to assess downstream impact when other measures depend on a KPI.

Instructions

Fast DAX-layer-only, BIDIRECTIONAL lineage for a measure (returns direct columns, base measures, DOWNSTREAM dependent KPIs, and bound reports; up to 'limit' matches, default 25, with total_matches and truncated disclosure). Use when you need downstream impact ('what other measures depend on this KPI?'). Do NOT use to trace into Power Query M, Dataflows, Fabric Notebooks, or SQL (use pbi_trace_measure_end_to_end instead).

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": {
      "measure": "<measure>"
    },
    "name": "pbi_get_measure_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of matching measures to return (default: 25, max: 100).
modelNoOptional semantic model name substring filter.
measureYesDAX measure name or Table[Measure] substring.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world and non-destructive behavior, so the description's added value is the result contract: truncation is disclosed via total_matches and a 'truncated' flag, and the default cap of 25 (max 100) is spelled out. It also flags the direction of traversal (upstream base measures/columns plus downstream dependents) and that the call is fast/DAX-only, which hints at a bounded cost. It does not discuss permission requirements or what happens if the measure name is ambiguous, but against these annotations that is a minor gap.

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?

Two sentences, front-loaded with scope and the exclusion, so an agent can decide quickly. The opening sentence is dense with stacked parentheticals (return contents, limit default, truncation disclosure), which is information-rich but slightly harder to parse than a split sentence would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of telling the agent what comes back, and it does so explicitly (direct columns, base measures, downstream KPIs, bound reports) plus the truncation signal. For a 3-parameter read-only lineage lookup, nothing material is missing.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3; the description earns a bump by explaining the semantic effect of 'limit' - that matches above the cap are truncated but the truncation is reported through total_matches. The 'measure' parameter's substring behavior is restated from the schema rather than extended, and 'model' is left entirely to the schema, so it is not a full 5.

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 ('lineage for a measure') and pins the scope precisely: 'DAX-layer-only, BIDIRECTIONAL', enumerating what comes back (direct columns, base measures, downstream dependent KPIs, bound reports). That is enough for an agent to distinguish it from pbi_trace_measure_end_to_end without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit positive trigger ('Use when you need downstream impact - what other measures depend on this KPI?') and an explicit exclusion naming the correct alternative ('Do NOT use to trace into Power Query M, Dataflows, Fabric Notebooks, or SQL - use pbi_trace_measure_end_to_end instead'). Both the when and the when-not are stated, with the fallback tool named.

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