Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pbi_get_catalog_summaryA

Step 1 of discovery (orientation only). Returns high-level counts of scanned Power BI workspaces, semantic models, reports, Dataflows, Fabric items, tables, measures, and source connectors in the local catalog. Use first to understand catalog scope. Do NOT use to list individual model names or inspect model architecture (use pbi_list_models or pbi_inspect_model instead).

pbi_list_modelsA

Step 2 of discovery (model inventory). Lists documented Power BI semantic models with dataset GUID, workspace, refresh status, source connectors, table/measure/relationship/report/dataflow counts, and health finding counts. Use to locate exact model names or dataset GUIDs before deeper inspection. Do NOT use to inspect tables, relationships, RLS roles, or DAX formulas (use pbi_inspect_model or pbi_inspect_table instead).

pbi_inspect_modelA

Step 3 of discovery (model-wide architectural blueprint). Returns summary stats, source connectors and endpoints, upstream Dataflows (Gen1/Gen2), table summaries (names, storage modes, column/measure counts), unreferenced column summary, relationships, RLS/OLS roles, bound report names, and governance health findings for one semantic model. Use to understand star schema, security, and overall model health. Does NOT return individual DAX measure formulas, full column metadata, or complete Power Query M partitions (use pbi_inspect_table for single-table detail, or pbi_search_dax_and_m to search code across models).

pbi_inspect_tableA

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).

pbi_search_dax_and_mA

Full-text substring search across all DAX measures, calculated columns, model Power Query M partitions, Dataflow Gen1/Gen2 M queries, and Native SQL across the entire catalog. Returns up to 'limit' matches (default 50) along with total_matches and truncated flags; partition snippets are capped at 1200 chars (use pbi_inspect_table for complete unclipped M code). Use when searching for a DAX function, column name, or SQL keyword across unknown models. Do NOT use for structured upstream-to-downstream blast-radius analysis (use pbi_trace_source_impact instead).

pbi_trace_source_impactA

Downstream blast-radius impact analysis starting from an upstream physical source (database, server, schema, view, table, SharePoint site, or Dataflow name/ID). Returns every affected Dataflow (Gen1/Gen2), Power BI table, semantic model, impacted DAX measures (up to 40 per model with impacted_measures_total and impacted_measures_truncated disclosure), and downstream bound reports. Use when planning a database, view, or Dataflow breaking change. Do NOT use to trace a single DAX measure backwards to its physical source (use pbi_trace_measure_end_to_end instead).

pbi_get_measure_lineageA

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).

pbi_trace_measure_end_to_endA

Deep UPSTREAM-ONLY, multi-hop lineage trace for the single best-matching DAX measure across Dependent Measures -> Columns & Tables -> Power Query M Steps -> Dataflows (Gen1/Gen2) / Fabric Notebooks & Lakehouse Delta Tables -> Native SQL & Physical Sources (returns audit-ready Markdown or JSON graph). Use when documenting a KPI end-to-end back to its physical source. Do NOT use to find downstream dependent measures (use pbi_get_measure_lineage instead).

pbi_inspect_report_layoutA

Inspect scanned Power BI report visual layouts (PBIR and legacy PBIX), pages, visual groups, field bindings (with E2E lineage node IDs), page/visual filters, slicer selections, report-level thin DAX measures, and broken visual references. Returns up to 'limit' reports (default 30) with total_matches and truncated disclosure. Use when auditing report visuals, filters, or broken field bindings. Do NOT use for semantic model schema or model DAX definitions (use pbi_inspect_model or pbi_inspect_table).

pbi_audit_catalog_healthA

Returns governance, refresh failure, staleness, non-production endpoint, performance (bidirectional relationships, auto-date bloat, heavy PQ merges), broken visual reference, deleted-dataflow, and RLS findings across all scanned Power BI models. Use for catalog-wide governance triage. Do NOT use to enumerate individual unused columns or measures (use pbi_find_unused_fields instead).

pbi_find_unused_fieldsA

Audits one semantic model for columns and DAX measures not referenced inside the model (DAX, relationships, SortBy, Field Parameters, Hierarchies, RLS/OLS, Incremental Refresh, Derived M) or in scanned bound report layouts. Enforces the has_parsed_layouts safety guard: returns empty lists with a prominent warning if no bound report layouts were scanned. Use to review unused bloat before cleanup. Do NOT use to emit executable Tabular Editor code directly (use pbi_generate_cleanup_script after reviewing results).

pbi_generate_cleanup_scriptA

Generates a reviewable Tabular Editor 2/3 C# (.csx) cleanup script targeting unused columns and/or DAX measures in a semantic model, ordered leaf-first for safe dependency handling. Does NOT modify any Power BI model or file on disk; returns the .csx script text for human review. Defaults to safe non-destructive action='hide' rather than action='delete'. Refuses to emit mutation code when has_parsed_layouts is false. Use after auditing unused fields with pbi_find_unused_fields.

pbi_diff_modelA

Compares two semantic models in the local catalog (for example PROD vs DEV) across tables, columns, DAX measures, relationships, partitions, shared M expressions, and RLS/OLS roles. Classifies breaking changes and optionally checks bound reports on the base model to list impacted visuals and report-level DAX. Supports base_workspace and target_workspace filters to disambiguate identically named models across environments. Use for release review and deployment impact checks. Do NOT use to inspect a single model (use pbi_inspect_model instead).

pbi_generate_portalA

Regenerates the offline static HTML Documentation & Live Lineage Portal from the local catalog store. SIDE EFFECT: writes local HTML, CSS, and JS files under <catalog_dir>/portal/ and cleans stale model HTML files inside that portal folder. Makes zero Power BI Service API calls and does not modify any remote workspace or semantic model. Use only when the user asks to rebuild the local offline portal.

Prompts

Interactive templates invoked by user choice

NameDescription
audit-semantic-modelRun a structured architecture, governance, security, and unused-bloat audit on a Power BI semantic model.
trace-breaking-changePerform end-to-end downstream impact analysis for a planned upstream database, view, column, or Dataflow change.
find-unused-bloatIdentify unreferenced columns and DAX measures in a semantic model and prepare a safe Tabular Editor (.csx) cleanup script.
explain-dax-chainTrace and explain a DAX measure end-to-end from physical source and Power Query M through model tables, dependent KPIs, and reports.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 14 tools

Disambiguation4/5

The four-step discovery chain (catalog summary -> list models -> inspect model -> inspect table) is explicitly staged, and nearly every description ends with a 'Do NOT use ... use X instead' pointer that resolves most collision risk. The only genuine overlap is among the three lineage tools (source impact vs. measure lineage vs. end-to-end trace), which are distinguishable only after reading the full directional/scope caveats in each description.

Naming Consistency5/5

Every tool uses the same pbi_ prefix with snake_case verb_noun form (pbi_list_models, pbi_inspect_table, pbi_audit_catalog_health, pbi_generate_cleanup_script). Verbs vary meaningfully by action (get/list/inspect/search/trace/audit/find/generate/diff) rather than arbitrarily, giving a predictable and readable convention.

Tool Count5/5

At 14 tools the surface sits squarely in the well-scoped range, with each tool mapping to a distinct phase (orientation, inspection, search, lineage, governance, cleanup, diffing, portal build). No tool looks like a redundant variant or filler entry.

Completeness4/5

The domain lifecycle is largely covered: discovery, deep inspection, full-text search, three lineage directions, governance audit, unused-field cleanup, model diffing, and portal regeneration. The noticeable gap is that no tool triggers or refreshes the catalog scan itself, and report handling is inspect-only, so an agent must assume a scan already exists and cannot generate or fix report artifacts.

Maintenance

ActivityNo data
ResponsivenessOutdated data