mcp-data-platform-toolkit

v1.5.2
mcp-data-platform-toolkit Checked 5 hours ago Published 25 days ago

MCP server for Power BI projects (PBIP, TMDL, PBIR): read, analyze and safely edit semantic models, find where measures and columns are used in reports, and…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_tables

Lists all tables of the Power BI semantic model, with the name declared in TMDL (the one Power BI Desktop shows). When the file name differs (names with characters not allowed in a file name) it is shown too. USE THIS TOOL first to get an overview of the available tables before running more specific queries ('get_table_summary' for one table, 'search_model' to find an object without knowing its table). Args: project_path: Absolute path to the .pbip file or the Power BI project folder.

ParameterTypeDescription
project_path *string

get_table_summary

One table in a few lines, without DAX or M: its kind (fact table, calculation group, calculated table, hidden), its partitions with the source each one reads, its columns (type, calculated, hidden, key, display folder, format, sort by), measures (display folder, format string, or which ones have none), calculation items, hierarchies with their levels, relationships, and how many visible elements have a '///' description. USE THIS TOOL instead of 'read_table_definition' to know what a table contains; read the DAX of one measure with 'get_dax_measure'. Args:…

ParameterTypeDescription
project_path *string
table_name *string
include_descriptionsboolean

get_documentation_coverage

How much of the semantic model has a '///' description, exactly: measures, columns, and tables / hierarchies / calculation items, each as documented out of total, VISIBLE elements apart from HIDDEN ones (the columns of a hidden fact table are read by measures, not by people, so they are not what a Data Dictionary has to explain). Then the tables with the most visible elements still undocumented. USE THIS TOOL for any question like "how documented is the model?", "what is missing?", instead of estimating from a few tables or listing the model by hand. With 'tabl…

ParameterTypeDescription
project_path *string
table_namestring

search_model

Searches the whole semantic model and returns one line per matching object, with the line that matched: far cheaper than reading the tables. USE THIS TOOL to find a measure or column by part of its name, every object whose DAX or M mentions something (a column, a function, a source table), or the objects whose '///' description talks about a topic. Searched objects: tables, columns, measures, hierarchies, calculation items, partitions, shared expressions and parameters, DAX functions, RLS filters of the roles. "expression" means: the DAX of measures, calculate…

ParameterTypeDescription
project_path *string
query *string
object_types
regexboolean
search_in
table_namestring

read_table_definition

Reads the full TMDL definition of a single table, DAX and M included. For the list of its columns, measures and their settings use 'get_table_summary' instead: it is many times smaller. Args: project_path: Absolute path to the .pbip file or the Power BI project folder. table_name: Exact name of the table to read.

ParameterTypeDescription
project_path *string
table_name *string

get_relationships

Returns the relationships (active and inactive) of the Power BI semantic model in compact form: one line per relationship, from side first, with its cardinality ('*--1' many-to-one, '1--1' one-to-one, '*--*' many-to-many). Never returns the full dump of model.tmdl. Args: project_path: Absolute path to the .pbip file or the Power BI project folder. table_name: Optional filter: only show relationships involving this table.

ParameterTypeDescription
project_path *string
table_namestring

get_dax_measure

Extracts the full DAX definition of a measure (declaration, multi-line expression, properties and associated '///' comments). Args: project_path: Absolute path to the .pbip file or the Power BI project folder. table_name: Name of the table that contains the measure. measure_name: Name of the measure to extract.

ParameterTypeDescription
measure_name *string
project_path *string
table_name *string

get_dax_lineage

Analyzes the semantic model lineage by mapping DAX dependencies. Covers measures, physical columns and calculation items of calculation groups. On large models the output is reduced progressively (tree, then one line per element, then counts, then inventory) but the name of every measure and calculation item is always kept. Measures that reference nothing (constants, BLANK(), COUNTROWS(Table)) are listed separately at the end. Args: project_path: Absolute path to the .pbip file or the Power BI project folder. target_measure: Optional measure or ca…

ParameterTypeDescription
project_path *string
target_measurestring

get_ols_permissions

Reads the Object-Level Security (OLS) of the security roles: which tables and columns are hidden (metadataPermission: none) for each role. Unlike the official Microsoft server (more focused on RLS), this tool correctly interprets both tables hidden as a whole and individual hidden columns nested inside 'tablePermission'. If a role also has an RLS filter it is flagged: 'get_rls_filters' shows it. Args: project_path: Absolute path to the .pbip file or the Power BI project folder. role_name: Exact name of a role to restrict the analysis to (default: a…

ParameterTypeDescription
project_path *string
role_namestring

get_rls_filters

Reads the Row-Level Security of the security roles: the DAX filter of each role on each table, the columns and measures it reads (resolved against the model, unresolved references flagged), whether it depends on the user (USERPRINCIPALNAME, USERNAME, CUSTOMDATA...), and the other tables it restricts through the relationships: active ones, from the one side to the many side, and back only where the relationship applies the security filter in both directions (securityFilteringBehavior). Tables and columns hidden per role (OLS) are in 'get_ols_permissions'. A…

ParameterTypeDescription
project_path *string
role_namestring
table_namestring

get_perspectives

Lists the perspectives of the model and what each one shows: per table, the measures, columns and hierarchies it includes, or the whole table (includeAll). Members that don't exist in the model any more (renamed or deleted objects) are flagged. Without 'perspective_name' it also lists the tables that are in no perspective. Args: project_path: Absolute path to the .pbip file or the Power BI project folder. perspective_name: Exact name of one perspective (default: all).

ParameterTypeDescription
project_path *string
perspective_namestring

get_translations

Reads the translations of the model (the 'cultures' folder): without 'culture', each language with how many visible objects (tables, columns, measures, hierarchies) have a translated caption, plus translated descriptions and display folders; with 'culture', every translation of that language, the visible objects still without a caption, and the translations of objects that no longer exist. Use it for a Data Dictionary in several languages or to check a translation is complete. Args: project_path: Absolute path to the .pbip file or the Power BI project…

ParameterTypeDescription
project_path *string
culturestring
table_namestring

get_description_guidelines

Returns the full guidelines (with examples) for writing descriptions meant for a business Data Dictionary, understandable by business users: the built-in rules followed by the user's own, for every project and for this one, each under the file it comes from. Where they disagree the more specific one wins. USE THIS TOOL ONCE at the start of a documentation session, before composing the 'base_description' values to pass to 'get_smart_description_preview' / 'write_smart_description'. There is no need to call it again for each element. The first line names…

ParameterTypeDescription
project_pathstring

get_smart_description_preview

Previews the '///' description of a TMDL element: existing text, proposed text and the result after writing with `mode`. Also shows the element's technical context (DAX dependencies), which is NOT written: use it to understand the element before composing 'base_description'. Can be called with an empty 'base_description' to get that context first. Does not write anything to the project. The first description ever prepared may come back with what to do first: the user is asked, once, whether they have rules of their own (saved in their own folder). Args:…

ParameterTypeDescription
element_name *string
project_path *string
table_name *string
base_descriptionstring
element_typestring
is_tableboolean
modestring

find_measure_usage_in_reports

Finds which reports and pages use one or more measures (and, with `column_names`, columns too), by reading Power BI reports in Enhanced Metadata (PBIR) format. Analyzed: visuals, report-, page- and visual-level filters, drillthrough/tooltip page fields, bookmarks and report-level measures (DAX defined in the report). Reports in the PBIR-Legacy format are NOT analyzed: the response lists them, and they must be upgraded to PBIR before their usages can be known. The Row-Level Security filters of the semantic models behind the reports (bound by path, or named…

ParameterTypeDescription
reports_workspace_path *string
column_names
measure_namestring
measure_names
semantic_modelstring

get_sql_project_lineage

Data lineage of a SQL Server database project (.sqlproj, T-SQL): which objects and which columns each table and view comes from, through views, INSERT, MERGE, UPDATE, SELECT INTO and CREATE TABLE AS, also inside stored procedures (temporary tables are followed through). Objects are labelled with their medallion layer, as configured in the project's 'lineage.yaml' (see get_lineage_config_guide); loads the SQL doesn't show come from the rules of that file and are marked "rule '<name>'". A project with no configuration, whose schemas the standard layers (bron…

ParameterTypeDescription
sql_project_path *string
config_pathstring
depthinteger
directionstring
levelstring
output_formatstring
targetstring

get_end_to_end_lineage

End-to-end lineage, from the source column to the report visual and back: database project (medallion layers, as in get_sql_project_lineage) -> Power Query of each table (renames, computed columns, merges, appends, native queries, Direct Lake) -> model columns, calculated columns, measures, calculation groups, field parameters -> visuals, filters, drillthrough fields, bookmarks and report-level measures of the PBIR reports bound to the model. 'upstream' from a visual gives every source column behind it; 'downstream' from a source column is the impact analys…

ParameterTypeDescription
project_path *string
config_pathstring
depthinteger
directionstring
levelstring
output_formatstring
reports_pathstring
sql_project_pathstring
targetstring

test_lineage_config

Checks the lineage configuration ('lineage.yaml') of a database project against the project itself, and says what to fix: problems of the file (with their line), the objects of each layer, schemas in no layer, what each rule matches and the sources it doesn't find, tables nothing loads, flows going backwards between layers, columns that reach no source, and the statements that couldn't be analyzed. Use it after every change to the file, until only the expected items are left. With 'project_path' it also checks the Power BI side: model tables that read from…

ParameterTypeDescription
sql_project_path *string
config_pathstring
project_pathstring
reports_pathstring

suggest_lineage_rules

Proposes the rules of 'lineage.yaml' for the tables nothing loads in the SQL of a database project, inferred from the names of the objects: a copy in another schema, a prefix or suffix added, the common start of the names generalized. Each rule is tried on the project (objects matched, sources found, objects the SQL already loads that it would also match) and returned as YAML ready to paste, plus a possible rule for the source systems when the first layer is named after them. They are proposals: check each one with the user, add it, then run test_lineage_co…

ParameterTypeDescription
sql_project_path *string
config_pathstring

draft_lineage_config

Drafts 'lineage.yaml' for a database project by analyzing its SQL, and returns the questions whose answers complete it. USE IT when the user wants to create the lineage configuration: it proposes every section (layers of the schemas in flow order, ignored schemas, rules for the tables nothing loads, ETL columns) from the flows between schemas and the object names, and asks only what stays uncertain, each question with a proposed answer. How to use it: call it without 'answers'; ask the user the open questions (all in one message, with the proposed answers)…

ParameterTypeDescription
sql_project_path *string
answers
project_pathstring

export_lineage

Exports a lineage as text to keep or share: 'mermaid' (a flowchart with a box per layer, drawn by GitHub, Azure DevOps and most Markdown viewers), 'markdown' (the diagram plus the table of the edges), 'csv' (one row per edge) or 'json'. With 'project_path' the end-to-end lineage of a Power BI project (plus 'sql_project_path' to include the database); with only 'sql_project_path' the database project. A diagram is never cut: when it doesn't fit a response, narrow it with 'target', 'direction' or 'depth', or save it with save_lineage_export (full access mode).…

ParameterTypeDescription
config_pathstring
depthinteger
directionstring
export_formatstring
levelstring
project_pathstring
reports_pathstring
sql_project_pathstring
targetstring

get_lineage_config_guide

Returns the guide to write 'lineage.yaml', the file that tells the lineage how a database project realizes the medallion architecture: which schemas form each layer and how the loads the SQL doesn't show work. USE IT before helping a user write or change that file, then check the result with test_lineage_config. To create the file, start from draft_lineage_config instead.

list_official_powerbi_tools

Lists the tools of the official Power BI Modeling MCP Server (Microsoft) available as a fallback, with name, description and argument schema. USE THIS TOOL before 'call_official_powerbi_tool'. For creating/formatting measures, setting display folders or visibility, or generating documentation, always prefer this server's native tools (get_description_guidelines, write_smart_description, set_display_folder, set_item_visibility, format_measure, create_measure, create_calculation_item): this list is for capabilities those tools don't cover (relationships, calc…