Skip to main content
Glama
Power BI Report MCP Server

Power BI Report MCP Server

Get Report

pbir_get_report
Read-only

Retrieve the current Power BI report path, detect a sibling semantic model, and expose live connection details so you can read the remote schema.

Instructions

Show the currently connected report path. Includes hasSemanticModel: boolean — true when a sibling .SemanticModel/ folder exists. Check this before calling pbir_model_usage. For live-connected reports (hasSemanticModel:false), also includes liveConnection: {workspace, dataset, semanticModelId} parsed straight from definition.pbir — feed these directly into powerbi-modeling-mcp's ConnectFabric operation (workspaceName + semanticModelName) to read the REAL remote schema without asking the user for the workspace/dataset name.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pbir_get_report"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
errorNo
_cacheNo
successNo
reportPathNo
liveConnectionNo
hasSemanticModelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds genuinely new behavioral context — where liveConnection data is parsed from (definition.pbir) and how to route it into a cross-server operation. It does not cover failure behavior (e.g., what happens when no report is connected), which is the remaining gap.

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 purpose, then the key discriminating field, then the conditional next step — a sensible ordering. The final sentence is dense (nested parentheticals, quoted external operation names) but each clause carries actionable information rather than filler.

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?

With an output schema present, return shape needn't be explained, yet the description still highlights the two fields that drive downstream decisions. The main omission is the no-report-connected / error case, which matters for a connection-state probe that instructs the agent to branch on a boolean.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The description's field-level detail is about outputs, not inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Show the currently connected report path') and enumerates the two extra payloads returned (hasSemanticModel, liveConnection). An agent can distinguish this from sibling getters like pbir_get_report_settings or pbir_get_report_theme by resource, though the description never explicitly contrasts them.

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 ordering guidance ('Check this before calling pbir_model_usage') and a concrete conditional branch: for hasSemanticModel:false, feed liveConnection fields into powerbi-modeling-mcp's ConnectFabric instead of asking the user for names. Both the when and the follow-up action are spelled out.

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