pbi_inspect_table
Inspect one Power BI table to return full column metadata, DAX measures, Power Query M scripts, hierarchies, and relationships. Use it after model-level discovery when exact column, formula, or M code details are needed.
Instructions
Step 4 of discovery (granular single-table inspection). Returns full column metadata (data type, source column, format, folder, sort-by, key/group-by flags, calculated column DAX, hidden flag, usage profile), hosted DAX measures (formatted formulas plus lineage and report usage), complete unclipped Power Query M partition scripts with parsed steps and native SQL, hierarchies, calculation items, and inbound/outbound relationships for one table. Use after pbi_inspect_model when you need exact column definitions, DAX expressions, or full M code. Do NOT use for cross-model keyword search (use pbi_search_dax_and_m) or multi-hop KPI-to-SQL lineage (use pbi_trace_measure_end_to_end).
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": {
"model": "<model>",
"table": "<table>"
},
"name": "pbi_inspect_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Semantic model name or dataset GUID. | |
| table | Yes | Table name (matched exact case-insensitive first, then substring). | |
| workspace | No | Optional workspace name filter to disambiguate identically named models. | |
| column_filter | No | Filter returned columns: 'all' (default), 'used', 'unused', 'calculated', or 'hidden'. | all |
| include_m_code | No | Include complete unclipped Power Query M partition code (default: true). | |
| include_measures | No | Include hosted DAX measures with formatted formulas and lineage (default: true). |