Skip to main content
Glama
Power BI Report MCP Server

Power BI Report MCP Server

Auto Layout

pbir_auto_layout

Arranges existing Power BI visuals on a page into an even equal-size grid by rows, columns, and padding. Tidies up already-placed visuals without creating new ones.

Instructions

Auto-arrange EXISTING visuals already on a page into a simple equal-size grid (evenly split by rows/cols/padding). Use this to tidy up visuals that are already placed. To PLAN AND CREATE new visuals in a precise grid (per-cell spans, bindings, validated margins/gaps) use pbir_layout_grid 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": {
      "pageId": "<pageId>"
    },
    "name": "pbir_auto_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesThe page ID
columnsNo
paddingNo
marginTopNo
marginLeftNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.6

TDQS

A4/5.0
Behavior3/5

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

Only openWorldHint=false is annotated, so the description carries most of the burden. It usefully discloses that only pre-existing visuals are rearranged and that sizing is uniform (equal-size grid), but it never states that existing positions/sizes are overwritten, what happens if the page has no visuals, or what the tool returns. That is adequate but leaves real behavioral gaps for a mutating layout 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?

Two tight sentences, front-loaded with the core action and the constraint (existing visuals), followed by the routing rule. Every sentence earns its place with no filler.

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

Completeness3/5

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

For a 5-parameter layout mutation with minimal annotations, no output schema, and 20% schema coverage, the description covers purpose and tool routing well but falls short on parameter meaning (units, margins) and on what is destroyed or returned. Sufficient to select the tool, only partially sufficient to call it confidently.

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

Parameters2/5

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

Schema coverage is low (20%) with only pageId documented, so the description must compensate for columns, padding, marginTop and marginLeft. It mentions only 'rows/cols/padding' and gives no units, ranges, or defaults, and it introduces a 'rows' concept that has no corresponding schema parameter, which is potentially confusing.

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 ('Auto-arrange EXISTING visuals already on a page') plus the resulting layout ('simple equal-size grid'), and explicitly contrasts itself with the sibling it is not. An agent can distinguish it from pbir_layout_grid without opening either schema.

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 an explicit when-to-use ('tidy up visuals that are already placed') and a when-not-to-use with a named alternative ('To PLAN AND CREATE new visuals ... use pbir_layout_grid instead'). Nothing about tool selection 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.