model_report_usage
Analyze report usage to classify model fields as directly bound, indirectly referenced, or unused, so you can identify safe-to-remove columns in Power BI.
Instructions
CROSS-LAYER usage analysis: join the live semantic model (sessionId) with the report (reportSource = a reportSessionId from open_report, a pbirSessionId from read_pbir, or a path to a PBIR .pbix/PBIP folder) and classify EVERY model field three ways. DIRECT = bound in the report - a visual projection, filter, slicer, tooltip, sparkline, sort, or a conditional-formatting/chrome binding (colour measures, icon rules, image URLs, dynamic titles - the bindings naive scanners miss). INDIRECT = reached via a direct measure's DAX lineage, a relationship path between in-play tables, a sort-by column, or a model-internal reference. UNUSED = neither - the safe-to-remove shortlist that find_unused (model-only) cannot produce. Read-only.
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": {
"sessionId": "<sessionId>",
"reportSource": "<reportSource>"
},
"name": "model_report_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | live model sessionId (connect_model) | |
| reportSource | Yes | a reportSessionId, a pbirSessionId, or a PBIR .pbix / PBIP folder path |