Skip to main content
Glama
Power BI MCP Server

Power BI MCP Server

by mbmccormick

discover_model

Discovers a Power BI semantic model's schema, including tables, columns, measures, and optional relationships, so you can understand the data model before writing DAX queries.

Instructions

Discover the schema of a Power BI semantic model using INFO.VIEW DAX functions. Returns tables, columns, measures, and relationships to help you understand the data model before writing DAX queries. Always call this tool first before writing DAX queries against a model.

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": {
      "datasetId": "<datasetId>"
    },
    "name": "discover_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetIdYesThe dataset (semantic model) ID.
workspaceIdNoThe workspace (group) ID. Omit for 'My Workspace'.
includeRelationshipsNoAlso return relationships between tables. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the mechanism (INFO.VIEW DAX functions) and the shape of the result, which implies a safe read, but it never states permissions, cost, or whether the call affects the model — notable gaps for a tool with zero annotation coverage.

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?

Three short sentences, front-loaded with what the tool returns, then the precondition. Every sentence is functional, though the opening sentence repeats some of what the second already conveys.

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?

There is no output schema, so the description usefully lists the returned entity types, and it flags the mandatory call-first pattern. Combined with full schema coverage of all three parameters, little an agent needs in order to invoke it correctly is missing, apart from authentication or permission context.

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 description coverage is 100%, so datasetId, workspaceId, and includeRelationships are already documented in the schema, including the default for includeRelationships. The description adds no syntax, format, or scoping detail beyond that baseline.

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 ('Discover the schema of a Power BI semantic model') and enumerates what comes back (tables, columns, measures, relationships). It implicitly separates itself from narrower siblings like get_tables by covering the whole model, but never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit sequencing rule: 'Always call this tool first before writing DAX queries against a model.' That is clear when-to-use guidance, but there is no when-not guidance and no mention of when a cheaper sibling such as get_tables would suffice.

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