Skip to main content
Glama

pbi_diff_model

Read-onlyIdempotent

Compare two semantic models to detect breaking changes across tables, columns, DAX measures, relationships, partitions, shared M expressions, and RLS/OLS roles, then list impacted reports and visuals.

Instructions

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

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": {
      "base_model": "<base_model>",
      "target_model": "<target_model>"
    },
    "name": "pbi_diff_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_modelYesBase semantic model name or dataset GUID (e.g. current PROD).
target_modelYesTarget semantic model name or dataset GUID (e.g. candidate DEV/UAT).
base_workspaceNoOptional workspace filter for base_model.
target_workspaceNoOptional workspace filter for target_model.
check_report_impactNoCross-reference removed fields against reports bound to base_model (default: true).
ignore_formatting_onlyNoIgnore whitespace/newline-only differences in DAX, M, and RLS expressions (default: true).

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 establish read-only, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds genuinely useful behavior beyond that: change classification (breaking vs not), optional cross-referencing of bound reports on the base model, and formatting-only diff suppression. What is still missing is any hint of the result shape or how breaking changes are categorized, which matters for a tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly packed sentences: scope and surfaces, capability and disambiguation, then usage plus exclusion. Front-loaded and no filler; each sentence carries distinct information.

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

Completeness4/5

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

For a six-parameter read-only diff tool with no output schema, the description covers the compared domains, optional behaviors, and the disambiguation concern well. The remaining gap is the absence of any description of the returned comparison result, which would help an agent interpret output even without a formal schema.

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 coverage is 100%, so the baseline is 3, but the description adds rationale the schema lacks: the workspace parameters exist to disambiguate identically named models across environments, and the report-impact check is tied to the base model specifically. That clarifies why base/target workspace apply per-side rather than generically.

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 (Compares) and resource (two semantic models in the local catalog), then enumerates the compared surfaces: tables, columns, DAX measures, relationships, partitions, shared M expressions, RLS/OLS roles. The PROD vs DEV example and the explicit contrast with pbi_inspect_model make it unambiguous against siblings.

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 both the positive case ('Use for release review and deployment impact checks') and the exclusion with a named alternative ('Do NOT use to inspect a single model (use pbi_inspect_model instead)'). An agent has a clear routing decision without reading the schema.

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