Skip to main content
Glama

pbi_inspect_model

Read-onlyIdempotent

Inspect a semantic model's architecture: tables, storage modes, relationships, RLS/OLS roles, dataflows, bound reports, and governance health findings.

Instructions

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

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>"
    },
    "name": "pbi_inspect_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesSemantic model name (exact or substring) or dataset GUID.
workspaceNoOptional workspace name filter to disambiguate identically named models (e.g. DEV vs PROD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / model / description
      Previous value: -"Model name or dataset GUID."New value: +"Semantic model name (exact or substring) or dataset GUID."
    • addedInput schema / properties / workspace
      Added value: +{
      +  "default": "",
      +  "description": "Optional workspace name filter to disambiguate identically named models (e.g. DEV vs PROD).",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so the description's job is to add scope and output shape — which it does thoroughly by itemizing what comes back and what does not. It stops short of auth/permission requirements or any cost/size caveat for large models, which keeps it from a 5.

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

Conciseness4/5

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

Front-loaded with the step and one-line purpose, and the long return inventory is scannable because each item is a distinct artifact rather than filler. The single dense enumeration sentence is heavy but every clause earns its place by helping the agent avoid an unnecessary sibling call.

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

Completeness5/5

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

There is no output schema, so the description must carry the return contract, and it does so item by item with enough specificity for the agent to decide whether a follow-up call is needed. Combined with the explicit exclusions and sibling routing, nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters (model, workspace) already carry descriptions including the DEV vs PROD disambiguation example. The description adds no extra matching or formatting semantics beyond noting it targets 'one semantic model', so the baseline 3 applies.

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 and resource ('model-wide architectural blueprint' for one semantic model) and then enumerates the concrete artifacts returned: summary stats, connectors, Dataflows, table summaries, relationships, RLS/OLS roles, bound reports, governance findings. The negative clause ('Does NOT return individual DAX measure formulas...') further pins the boundary against pbi_inspect_table and pbi_search_dax_and_m.

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 explicit use conditions ('Use to understand star schema, security, and overall model health') and positions the tool in a workflow ('Step 3 of discovery'). It names the alternatives and the condition selecting them: pbi_inspect_table for single-table detail, pbi_search_dax_and_m for code search across models.

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