Skip to main content
Glama
Power BI Report MCP Server

Power BI Report MCP Server

Layout Grid

pbir_layout_grid

Build a deterministic rows×cols grid of Power BI visuals in one call, computing margins, gaps and per-cell spans automatically. Preview the plan first or validate bindings and write immediately.

Instructions

Compute a deterministic rows×cols grid; server owns margin/gap/remainder math. Use this INSTEAD of N pbir_add_visual calls when building NEW visuals from scratch with precise per-cell spans and bindings. planOnly:true (default) returns the plan; planOnly:false validates bindings+layout then writes in one call. See guide('wireframes') for grid-shape selection. To re-arrange visuals that already exist on the page instead, use pbir_auto_layout.

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": {
      "rows": "<rows>",
      "cols": "<cols>",
      "cells": "<cells>"
    },
    "name": "pbir_layout_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
colsYes
gapsNoPx between cells, both directions (default 5).
rowsYes
cellsYesEmpty slots allowed — don't need to fill every cell.
pageIdNoAuto-resolved when only one page exists.
marginsNoDefault canonical (L=15, R=15, T=0, B=6).
planOnlyNotrue (default) = plan only; false = validate + write.
includeTypesNoReturn full {visualId,visualType,slotRef,x,y,width,height} per cell instead of slim ids.
strictLayoutNotrue=strict (default), false=warn. Omit for env default.
strictBindingsNoCommit-mode only (ignored when planOnly:true). true=strict (default), false=warn. Omit for env default.
reserveBannerRowNoStart grid at y=57, leaving top 52px for a banner shape (add separately via pbir_add_visual).
strictCustomVisualNoCommit-mode only (ignored when planOnly:true). true=strict (default), false=warn. Blocks cell visualTypes that look like a custom visual but aren't registered in this report's publicCustomVisuals.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.6

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply openWorldHint=false, so the description carries most of the behavioral burden and does it well: it discloses the two-phase contract (planOnly:true returns a plan, planOnly:false validates bindings+layout then writes in one call) and that strictBindings/strictCustomVisual are ignored in plan mode. It stops short of saying whether a commit appends to or replaces existing page content, which is a meaningful omission for a write operation.

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?

Four dense sentences, each front-loaded with a distinct decision (what it does, when to use it, mode behavior, alternative tool). No filler and no repetition of the tool title.

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 12-parameter nested tool with no output schema, the definition covers modes, alternatives, and even the effect of includeTypes on returned detail. Remaining gaps — bindings structure and whether a commit replaces existing page content — are narrow but real for a tool that writes to a page.

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 83%, so most parameters are already documented structurally. The description reiterates planOnly's default and commit semantics rather than adding new meaning, and it says nothing about the shape of cell.bindings, which the schema leaves as an untyped array — the one place extra prose would genuinely help.

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 ('Compute a deterministic rows×cols grid') with the scope that the server owns margin/gap/remainder math. It explicitly disambiguates from two siblings: it replaces N pbir_add_visual calls for new visuals, and pbir_auto_layout is for re-arranging existing ones.

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 when-to-use ('building NEW visuals from scratch with precise per-cell spans and bindings'), when-not ('to re-arrange visuals that already exist... use pbir_auto_layout'), and a pointer to guide('wireframes') for grid-shape selection. Nothing is left to inference.

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